Yes. Using a delegate to clear it out is the standard thing to do. Recreating the dialog each time would be detrimental to performance; making new objects is very hard work.
-ben On Aug 29, 2006, at 6:47 PM, Ron Lancaster wrote: > Is this how others do it? I'm looking for a Laszlo best practice to > follow. > > On Aug 29, 2006, at 6:55 AM, James Holstead wrote: > >> You could just write a method that clears each field and have a >> delegate >> call it every time the dialog either opens or closes. >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Ron >> Lancaster >> Sent: Monday, August 28, 2006 9:42 PM >> To: [email protected] List >> Subject: [Laszlo-user] Clearing Dialog Between Invocations >> >> I have a dialog that I use to create new entries in the database. >> Each time I display the dialog I would like it to display empty >> fields >> for data entry. However, since the dialog is "reused" the entries >> retain >> the values the user previously entered. Is there a simple way to >> defeat >> this without having to clear the fields manually on the display of >> the >> dialog? For example, should I be creating the dialog each time >> instead >> of opening/closing? >> >> Thank you, >> Ron Lancaster >> _______________________________________________ >> Laszlo-user mailing list >> [email protected] >> http://www.openlaszlo.org/mailman/listinfo/laszlo-user > > _______________________________________________ > Laszlo-user mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-user _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
