• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Seeting WODisplayGroup Fetch Spec Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeting WODisplayGroup Fetch Spec Programatically


  • Subject: Re: Seeting WODisplayGroup Fetch Spec Programatically
  • From: George Domurot <email@hidden>
  • Date: Thu, 29 Jan 2004 11:09:42 -0500

Owen: I'm not sure how you would get a list of available fetch specs
defined within an entity. However, here's the method for retrieving
one:

EOModelGroup.defaultGroup().fetchSpecificationNamed("MyFetchSpec",
"MyEntity").fetchSpecificationWithQualifierBindings(dictionary)

On Jan 26, 2004, at 7:29 PM, Owen McKerrow wrote:

> 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.
_______________________________________________
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.

References: 
 >Seeting WODisplayGroup Fetch Spec Programatically (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: how to develop a chat
  • Next by Date: Re: WebObjects and mySQL
  • Previous by thread: Seeting WODisplayGroup Fetch Spec Programatically
  • Next by thread: Re: 5.2.2 problems
  • Index(es):
    • Date
    • Thread