• 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: Filtering array returned by an EO's relationship (D2J)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering array returned by an EO's relationship (D2J)


  • Subject: Re: Filtering array returned by an EO's relationship (D2J)
  • From: Ricardo Strausz <email@hidden>
  • Date: Mon, 3 Nov 2003 11:39:14 -0600

Hola Ray!
There are, basically, two ways to get an EODatabaseDataSource:
* the ease, to ask for to a DisplayGroup (it may be a EODisplayGroup, if you work with EOInterface, or a WODisplayGroup, in a WOApp); simply
ds = displayGroup.dataSource();
* the pro, to initialize it with
ds = EODatabaseDataSource(anEditingContext, anEntityName).


After you have one, simply use
ds.setFetchSpecification(aFetchSpecification);
ds.setAuxiliaryQualifier(aQualifier);
anArray = ds.fetchObjects();


Read: file:///Developer/Documentation/WebObjects/Reference/API/index.html (recall, EODataSource is defined in EOControl).

Suerte!
Dino


On sabado, novi 1, 2003, at 06:36 America/Mexico_City, Ray Ackland wrote:


Dino,

Ok. I give up. I have been reading through the API doc's, and generally going around in circles. I would like to have a go at using the auxiliary qualifier, but from what I have learnt, I first need to get hold of the EODatabaseDataSource in question.

And I believe I can get that from the WOToManyRelationship.datasource() method. But how do I get the WOToManyRelationship?

I see I can get an array of to-many relationships, but this is not necessary as I already know the key for the relationship I want. But how do I get that relationship from that key?

Please point me in the right direction. As usual, the answer will be obvious once I know what it is.

Ray.

On Wednesday, Oct 29, 2003, at 07:34 Pacific/Auckland, Ricardo Strausz
wrote:

Did you try dataSource.setAuxiliaryQualifier(aQualifier);
_______________________________________________
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.

  • Follow-Ups:
    • Re: Filtering array returned by an EO's relationship (D2J)
      • From: Ricardo Strausz <email@hidden>
References: 
 >Re: Filtering array returned by an EO's relationship (D2J) (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: WO 5.2.2 & Panther & Xcode
  • Next by Date: Re: WOLongResponsePage and locking/unlocking of editingContexts
  • Previous by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Next by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Index(es):
    • Date
    • Thread