Re: Question about UI technique for adding a new object to a list
Re: Question about UI technique for adding a new object to a list
- Subject: Re: Question about UI technique for adding a new object to a list
- From: David Holt <email@hidden>
- Date: Tue, 9 Dec 2008 10:10:04 -0800
Thanks for all your suggestions everyone, they are all very
interesting and helpful.
I went for the quick and dirty separation of object creation/
insertion and then adding it to the relationship when I save. I don't
like this because it takes me away from using the awesome
WonderEntity eogenerator templates for object creation and insertion
that does it all in one step. I will definitely explore each of these
ideas going forward. Especially this one, Ramsey. Is there anything
that Wonder doesn't do? ;-)
David
On 8-Dec-08, at 9:20 PM, Ramsey Lee Gurley wrote:
And if you're using wonder... ERXGenericRecord's isNewObject()... :)
Ramsey
On Dec 8, 2008, at 5:07 PM, David Nahodil wrote:
Heya,
If you have an isNew() method on your EOs to check if they are new
in their editing context you could try filtering using that too.
Something like this (or the WOnder equivalent):
new EOKeyValueQualifier(
"isNew",
EOQualifier.QualifierOperatorNotEqual,
Boolean.TRUE
);
Might be handy if you really need to add the relationship first,
or if you want to avoid using multiple ECs.
Cheers,
David
David Holt wrote:
Hi all,
Is there a way for me to add an object to a to many relationship
(list of objects) without leaving the page or representing the
newObject both in the list and in the edit interface?
For example:
Meeting edit page
Attendees:
John
Mary
Edward
add new attendee(button)
When you hit the "add new attendee" button you get the new person
object displayed in both the list and associated with the edit
interface.
John
Mary
Edward
(new person)
name: (new person)
(save) (cancel)
The attendee has a mandatory meeting relationship, so it is added
to the meeting upon creation. The new object is displayed as the
final object in the to many relationship even before saveChanges
is called on the editingContext. Is it possible to show only the
objects in the relationship that have already been saved to the
database and the newly created (but not yet saved) object
separately?
Normally I would add the attendee on a separate page and on save
come back to the original meeting page but I would like to
eliminate some jumping around if possible.
Thanks,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40etechgroup.com.au This email sent to email@hidden
--
David Nahodil
Software Engineer
Etech Group Pty Ltd
Global Support and Development
Floor 1, 61 Davey St
Hobart TAS 7000
Australia
Ph: +61 3 6270 6222
Fax: +61 3 6270 6299
----------------------------------
IMPORTANT: This e-mail message and any attachments are
confidential and may be privileged. If
received in error, please reply to this message and destroy all
copies and any attachments. You should
check this message and any attachments for viruses or defects. Our
liability is limited to resupplying any
affected message or attachments. For more information about Etech
Group, please visit us at
http://www.etechgroup.com.au
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@mac.com
This email sent to email@hidden
_______________________________________________
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