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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to