Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Fabian Jakobs
Aaron Cooper schrieb: > Thanks guys > > I guess this falls into the same kinda thing as Sebastian's Manager idea, > but here goes: > > I was just playing around with adding all the necesary field objects to a > global array (one for each window) just after I add the fields to their > parent. > >

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Aaron Cooper
ment" Sent: Friday, November 17, 2006 10:29 AM Subject: Re: [qooxdoo-devel] Resetting all fields > 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

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Aaron Cooper
Cheers mate. - Original Message - From: Jim Hunter To: qooxdoo Development Sent: Friday, November 17, 2006 10:52 AM Subject: Re: [qooxdoo-devel] Resetting all fields You would think that would be the syntax, but it's not. Inside the braces, the 'this' k

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Jim Hunter
qooxdoo Development *Sent:* Friday, November 17, 2006 10:03 AM *Subject:* Re: [qooxdoo-devel] Resetting all fields A brute force way would be to iterate each child control of the window (assuming that you are placing your edit controls on the window itself and not on some other control in the wi

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Sebastian Werner
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

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Sebastian Werner
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 al

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Dan Fillpot
The way I do it, probably not the most elegent, but: I create a parent form(a transparent CanvasLayout), attach that to my windowattach all TextFields created(dynamically in my case) to the CanvasLayout. Then I can just reference the CanvasLayout object(), iterate through its children and g

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Aaron Cooper
--- Original Message - From: Jim Hunter To: qooxdoo Development Sent: Friday, November 17, 2006 10:03 AM Subject: Re: [qooxdoo-devel] Resetting all fields A brute force way would be to iterate each child control of the window (assuming that you are placing your edit controls on the windo

Re: [qooxdoo-devel] Resetting all fields

2006-11-16 Thread Jim Hunter
A brute force way would be to iterate each child control of the window (assuming that you are placing your edit controls on the window itself and not on some other control in the window) using forEachChild and then issue a setValue('') on each child (wrap this in a try/catch because not all qooxdo

[qooxdoo-devel] Resetting all fields

2006-11-16 Thread Aaron Cooper
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.