Hi Matt, I tried distoryAllChildren for the viewStack but the application has been put on his knees .... I got an warning message from the player that a script is causing some problems... don't remember the message... I think I would like the approach you mention with the binded model to the form elements and try clear the model and disable/enable the validator.
Thanks for helping me out, Valy --- Matt Chotin <[EMAIL PROTECTED]> wrote: > Basically I would give each screen a clear() method > and then walk the > ViewStack's children and call clear() on each. If > you want you could have > the fields on each screen bound to some model and > then clear the fields > within the model. If you have Validators set up > though you'll need to be > careful because the Validators might indicate that > the form is invalid after > it has been cleared. You'll need to disable the > validators before clearing > the fields and re-enable them after. I think we've > discussed this in other > flexcoders posts but I don't remember the subjects. > > > > Some people have taken the approach of actually > destroying all the children > and re-creating them, but that might be a little > expensive for your > situation. > > > > Matt > > > > _____ > > From: [email protected] > [mailto:[EMAIL PROTECTED] > Sent: Friday, April 15, 2005 12:38 PM > To: [email protected] > Subject: [flexcoders] reset views fields values for > a stackview panel > > > > I have a view stack containers with multiple > sub-views that can suport > add/edit/delete functionalities. At some point I > need to clear all the > stack's views... imagine I have navigated through > some screens and have an > option to start from the beggining and need somehow > to clear all the views > and start fresh again.... Is there any way to do > that? > > Thanks, > > Valy > > _____ > > Do you Yahoo!? > Yahoo! Small Business - Try > <http://us.rd.yahoo.com/evt=31637/*http:/smallbusiness.yahoo.com/resources/> > our new resources site! > > _____ > > Yahoo! Groups Links > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ > <http://groups.yahoo.com/group/flexcoders/> > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > > * Your use of Yahoo! Groups is subject to the Yahoo! > <http://docs.yahoo.com/info/terms/> Terms of > Service. > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

