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.