6 Replies Latest reply on Aug 4, 2011 6:44 PM by saisri2k2

    select ViewStack child?

    tooMuchTrouble Level 3

      i have a menu with data that selects a view off of a ViewStack (workStack in this case). using something like

       

      workStack.selectedIndex=someIndex

       

      works fine but is quite messy & will be hard to maintain.

       

      i've been trying to get:

       

      workStack.selectedChild=Container(workStack.getChildbyname(menuItem));

       

      working but it never seems to swap to the correct View (set the workStack's creationPolicy="all" just in case the child wasn't created, no workie either). all the Views have IDs, so that's not it either.

       

      any ideas?

       

      thanks.