Re: Adding records to display group
Re: Adding records to display group
- Subject: Re: Adding records to display group
- From: Chuck Hill <email@hidden>
- Date: Sun, 13 Aug 2006 16:10:54 -0700
On Aug 11, 2006, at 8:23 AM, Don Lindsay wrote:
Hello All;
I am working with a Component that has a display group. What I
would like this page to be is an add page. I do not wish to have
the Display Group fetch anything. I want to allow the user to
insert records into the empty display group and then do a save as a
final step (their choice not mine, I would prefer to add one at a
time and put them in the database).
During the add process the display group should only show the
records that have not been saved. Is it possible to do this?
Yes, but perhaps not with a DisplayGroup. An editing context
maintains the list of of insertedObjects() e.g. inserted via
insertObject but before saveChanges has been called.
Maybe by creating a mutable array of enterprise objects then
inserting that entire array into the editing context enterprise
object of the same type?
Not sure what that means :-) but doing anything with an EO before it
has been inserted into an Editing Context will eventually bring great
grief into your life.
Chuck
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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