Hi Maria Jose,

could you try again. I just closed this ticket [1] since I saw it working.
I suppose is due to some fixes in bindings done today by Greg.

Please try it with the new changes and report back if you continue seeing
problems :)

[1] https://github.com/apache/royale-asjs/issues/843#event-3383191618

El jue., 28 may. 2020 a las 12:00, Maria Jose Esteve (<mjest...@iest.com>)
escribió:

> Hello good day,
>
> I want to use currentState, in my jewel ApplicationResponsiveView, and I
> need to retrieve the value of stateGroups but I can't get it because
> apparently it is not populated in the creation of the states Array, I
> always retrieve undefined.
>
>
>
> Possibly I am leaving something unspecified ...
>
>
>
>    1. Definition
>
>
>
>     <j:states>
>
>         <js:State name="noinit" stateGroups="normal"/>
>
>         <js:State name="init" stateGroups="normal"/>
>
>         <js:State name="start" stateGroups="normal"/>
>
>         <js:State name="normal" stateGroups="normal"/>
>
>         <js:State name="filter" stateGroups="normal"/>
>
>         <js:State name="order" stateGroups="normal"/>
>
>         <js:State name="search" stateGroups="normal"/>
>
>         <js:State name="add" stateGroups="editing" />
>
>         <js:State name="edit" stateGroups="editing" />
>
>         <js:State name="start" />
>
>         <js:State name="update" />
>
>     </j:states>
>
>
>
>    1. Bead
>
>
>
>     <j:beads>
>
>         <js:ContainerDataBinding/>
>
> <js:SimpleStatesImpl/>
>
>     </j:beads>
>
>
>
>    1. The first time I change the currentState the contents of the array
>    is:
>
>
>
> var icur:int = -1;
>
>                 for each (var s:State in states){
>
>                     icur++;
>
>                     if(currentState == s.name){
>
>                         iCurrentState = icur;
>
>                         trace("["+icur.toString()+"]  gr: "+ s.stateGroups
> + "\\" + s.name);
>
>                     }else{
>
>                         trace("gr: "+ s.stateGroups + "\\" + s.name);
>
>                     }
>
>                 }
>
>
>
>
>
>
>
> Can you see what I'm missing or what I'm doing wrong?
>
>
>
> Thx
>
> Hiedra.
>
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira
  • States Maria Jose Esteve
    • Re: States Carlos Rovira

Reply via email to