Editing a record
Editing a record
- Subject: Editing a record
- From: John Spicer <email@hidden>
- Date: Mon, 12 Apr 2004 15:23:19 -0500
In the demo manual (volume 2: webobjects 5 web applications) they show
how to do an all-in-one screen with a list of items at the top, and the
ability to edit each item on the next screen (chapter 7)
They go from the main page (component), with the list, to another
screen, where they edit the item.
I want to do something like this, but I want the main page/component to
go to a list (screen) and thence to an edit screen.
I have the list working, but I can't get the edit screen to work. The
problem is here:
public EditPatient editPatient()
{
EditPatient nextPage = (EditPatient)pageWithName("EditPatient");
// Initialize your component here
patient = patientItem;
nextPage.setUser (patient);
return nextPage;
}
This is in the list code. The line nextPage.setUser(patient); causes
the compile to fail, but it won't tell me why.
I know it's this line, but that's all.
I'm assuming I've missed something that needs to be set up, but the
docs I have are not of much help.
Any help appreciated.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.