2 Replies Latest reply on Nov 4, 2009 9:49 AM by erthy

    ViewStack - what am I doing wrong?

    erthy

      I have a viewstack and I want it to switch to another view. In one function I have:

      sloupec2.selectedIndex=2; zrusit.enabled=true; odeslat.enabled=true; slovicko1.enabled=true;

      The "zrusit" button is inside the second (0,1,2 - third) stack, but when I execute the function, it throws an error. After I dismiss an error and execute the function again, it works. It seems to me, like the chenging of the selectedIndex is taking too long, but once its selected, it works.

       

      What should I do?

       

      In case I need to set up an event listener, how do I do that?

       

      I am a beginner and my english isn't too good. Excuse me