This content has been marked as final. Show 10 replies
You need to do something in the "show" event for the viewstack child container that has the ComboBox.
As to what exactly to do, I'm not sure. I guess you could set the selectedIndex to 0.
So basically every time you change the view stack the objects will refresh to the new data.
I believe that's how show event works.
I really appreciate all the help u have given me by the way.
My pleasure. I love looking at this forum daily and helping people out!
this is how i have my stack
<mx:ViewStack id="myViewStack" borderStyle="none" width="1024" height="100%" borderColor="#FFFFFF" horizontalCenter="0" verticalCenter="0">
<mx:VBox id="dashboard" styleName="gradientBackground" horizontalAlign="center" verticalAlign="middle">
<comp:dashboard width="100%" height="100%" />
what would i have to do with the comp:dashboard
"realtime158" <firstname.lastname@example.org> wrote in message
> Lets say in view stack one you have a combo box and you select a value
> from it.
> Then you tell the view stack to go to another screen to enter some text in
> text box. When you go back to the one with the combo box it still has the
> selection value how do you refresh the view stack so that it will show new
> or refresh the component within the view stack.
If the combobox is bound to something, you could set it to be bound to an
If your question is how can you add reset functionality to the comp:dashboard component, it depends on how you have implemented it.
If your comp:dashboard component extends UIComponent or any of UIComponent sub-classes, then you can add a "show" event handler, for instance in the constructor. In that event handler you would implement whatever logic is necessary to reset the component, such as setting the selectedIndex of a ComboBox to 0.
comp:dashboard is basically loads a MXML component
Have you come across any examples of this?