Seeting WODisplayGroup Fetch Spec Programatically
Seeting WODisplayGroup Fetch Spec Programatically
- Subject: Seeting WODisplayGroup Fetch Spec Programatically
- From: Owen McKerrow <email@hidden>
- Date: Tue, 27 Jan 2004 11:29:55 +1100
Hi All,
I want to be able to pass in a name of the fetch spec I want it to
use (that's defined in the entity, in the model file ) and then
programatically change the WODisplaygroup so that it use this fetch
spec.
I would imagine I would use something like this ( thanks WOCode.com) :
EOFetchSpecification spec = new EOFetchSpecification("Job", qual,
null);
EODatabaseDataSource ds =
(EODatabaseDataSource)jobDisplayGroup.dataSource();
ds.setFetchSpecification(spec);
jobDisplayGroup.fetch();
But that's a fetch spec made programatically, how do I find out what
fetch specs are defined in my model for each entity and then how do I
assign one of these to the display group ?
Thanks
Owen
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
"I like the way this project has somehow, against all common sense, got
itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
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.