Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing my form



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.