Re: Position on First Record
Re: Position on First Record
- Subject: Re: Position on First Record
- From: Art Isbell <email@hidden>
- Date: Sun, 10 Jul 2005 12:03:56 -1000
On Jul 10, 2005, at 11:45 AM, Don Lindsay wrote:
I have an edit form, that allows editing of a setup table. This
table only has one row, I would like for the form to allow the user
to edit the one record in the table. I have created a key of the
type techhelpsetup. Under the super(context) I have put in the
code oSetup = new TechHelpSetup(); and all of the fields are linked
to properties of oSetup.
Everything compiles and runs but the fields are blank. Am I
missing something here?
Ensure that your submit button and the table are in the form.
If you want to be able to insert a new TechHelpSetup object, it
must be inserted into the editing context being sent the saveChanges
() message (consider EOUtilities.createAndInsertInstance() to replace
"new TechHelpSetup()").
If you want to be able to edit an existing TechHelpSetup object,
instead of creating a new TechHelpSetup, fetch the existing one.
Enable adaptor debugging (add launch argument "-
DEOAdaptorDebugEnabled true") to watch the SQL being sent to the DB
to ensure that what you believe should be happening really is.
Provide us with more details if none of the above is solves your
problem.
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