Hi Coders
I have 2 buttons and when clicked i am changing the viewstack's
selectedChild.
My problem is i have some dynamic content on the peopleView. When i click on
the "UserList" button the stack change and data is loaded. But when i click
it again it does not refresh. What i need to know is every time i click on
the a button although the current view is the same as the clicked one i want
it to be recreated?
Anyone know how to achieve this?
<mx:Button label="Add Person" click="mainView.selectedChild = personView"
icon="{__AddPersonIcon}" />
<mx:Button label="User List" click="mainView.selectedChild = peopleView"
icon="{__PeopleIcon}" />
<mx:ViewStack id="mainView" width="100%" height="100%" paddingTop="{
myMenuBar.height}" >
<views:person id="personView" dbConnection="{conn}" />
<views:people id="peopleView" dbConnection="{conn}" />
</mx:ViewStack>