Upps. :( you want to reset them. I have overseen this. A manager would probably a good option, too. But you must inherit from the default object manager and add some function to reset the values of the assigned objects.
Sebastian Werner schrieb: > The most elegant way in my opinion would be to add all instances to a > separate manager instance (qx.manager.object.ObjectManager). This > instance than allows you to enable/disable all added/registered widgets, > objects, etc. > > Sebastian > > > Aaron Cooper schrieb: >> Is there an official way to reset all fields on a qooxdoo 'form'? >> >> I have a window for data entry, when the user clicks the 'Save' or 'Home' >> button, the data entry window closes, and the Home window opens again. >> >> If you navigate back to the data entry window, any data typed before is >> still there. >> >> Obviously the windows for this app are loaded from the start, and are only >> closed when not needed. Rather than being totally destroyed and reloaded >> each time. >> >> Would using window.dispose() be a better option to get what I'm after? >> And what does window.restore() do exactly? >> >> I ask as I've tried the above method (dispose/restore) unsuccessfully. >> >> If manually coding each feild and setting the value to blank when the window >> closes is the only way then I'll do that, but I was hoping for something >> more like document.getElementsByTagName or the like as there are over 30 >> fields, it'd be nice just to have a loop. >> >> Cheers >> Aaron >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
