Re: EODisplayGroup
Re: EODisplayGroup
- Subject: Re: EODisplayGroup
- From: Art Isbell <email@hidden>
- Date: Fri, 18 Jun 2004 09:45:35 -1000
On Jun 18, 2004, at 2:56 AM, Yves Custeau wrote:
I just could not figure out how to use the API to make a specific
record the
current (or selected) record to use functions like:
selectedObjectValueForKey().
I was successful this morning using the following method
anEOdg.setSelectionIndexes(new NSArray(selectionNumber));
That method is useful if you have an index.
But if you have a value that is within the data? I still cannot
understand
how I could use the following function to search:
anEOdg.selectObject(personObj);
Where do you get that "personObj" from to perform the selection ? What
type
of object is it?
For example if the user types the Product_Number in a textfield, how
can I
use this function to search for the object that has Product_Number ==
10
and make that Object the current (or selected) object??
I do these sorts of operations frequently with little trouble.
However, I never use a WODisplayGroup. Have you considered using an
EOEditingContext with arrays of EO's instead? There are methods for
searching, sorting, etc. these arrays of EO's without worrying about
selected objects and other WODisplayGroup concepts. About the only
thing I use a WODisplayGroup for is when I need to display batches of
fetched EO's. Seems like you're struggling unnecessarily.
Aloha,
Art
_______________________________________________
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.