# Acceder al valor $item desde una variable Javacripts Expresion

**URL:** <https://community.ofelia.com/t/acceder-al-valor-item-desde-una-variable-javacripts-expresion/10431>\
**Category:** Q&A\
**Created:** [2 October 2020 08:59 UTC](https://community.ofelia.com/t/acceder-al-valor-item-desde-una-variable-javacripts-expresion/10431 "2020-10-02T08:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carloshc95](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@carloshc95](https://community.ofelia.com/u/carloshc95)\
**Post date:** [2 October 2020 08:59 UTC](https://community.ofelia.com/t/acceder-al-valor-item-desde-una-variable-javacripts-expresion/10431/1 "2020-10-02T08:59:34Z")

</div>

¿Como puedo acceder al valor $item de una coleccion desde una&nbsp;&nbsp;variable Javacripts Expresion&nbsp;?

Muchas gracias :)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [14 October 2020 07:26 UTC](https://community.ofelia.com/t/acceder-al-valor-item-desde-una-variable-javacripts-expresion/10431/2 "2020-10-14T07:26:21Z")

</div>

&nbsp;

Hola Carlos, lo siento por l'ingles:

You can achieve this using a fragment, available in Subscription version

Procedure:

- Create your main container (A) and&nbsp;&nbsp;bind your collection property to a data collection (as you probably already did)
- Inside the container create a new one (B) where you can put your widgets
- Transform B in a fragment
- in the fragment create an exposed variable and map its attributes to the widgets
- In the B container map the fragment variable to the $item one&nbsp;

Hope it helps,

cheers

&nbsp;
