• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clearing my form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Clearing my form (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Re: Returning a Related Array of Attributes?
  • Next by Date: Re: Returning a Related Array of Attributes?
  • Previous by thread: Clearing my form
  • Next by thread: Checkbox fun
  • Index(es):
    • Date
    • Thread