Re: Clearing my form
Re: Clearing my form
- Subject: Re: Clearing my form
- From: Art Isbell <email@hidden>
- Date: Thu, 16 Sep 2004 14:27:07 -1000
On Sep 16, 2004, at 4:34 AM, Jeremy Matthews wrote:
In my form there are some items with initial values; upon submitting
the form all values remain (they get into the DB as well). I want
these values to CLEAR after submittal, so a fresh entry can be saved.
I tried changing my save button to redirect back to the component
(instead of null), and that works...except the values no longer get
into the DB. Any ideas?
Assuming that your form elements are bound to attributes of an EO, the
method bound to your submit button should assign a new EO to the EO
variable whose attributes are bound to the form elements after a
successful saveChanges() message to the editing context. That should
clear the form except for any attributes that are initialized in the EO
class' awakeFromInsertion() method.
Aloha,
Art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden