Re: EOModeling qualified one to many
Re: EOModeling qualified one to many
- Subject: Re: EOModeling qualified one to many
- From: Ricardo Strausz <email@hidden>
- Date: Thu, 15 Jan 2004 17:03:34 -0600
Sorry James... do not understud the question?
Could you be specific?
Dino
On Jan 12, 2004, at 20:01, james cicenia wrote:
Well that is very close to what I have been asking...
What does the third pane in the inspector due for relationships? Could
one use those key value combinations to create these qualified
relationships?
-James
On Jan 12, 2004, at 7:02 PM, email@hidden
wrote:
To: WOdev List List <email@hidden>
Hola Ray!
One posibility (not very efficient, but ease to implement) is the
following; suppose we have a master-->>detail relation and, once
selected a masterObject, we want only those details related to master
which ALSO have the atribute toFilter>0.
So, by default, the detailDisplayGroup will fetch all details with FK
=
masterObject.PK but if we set a qulifier to such a displayGroup we can
get the filtered array with displayedObjects() (instead of
allObjects()):
detailDisplayGroup.setQualifier(new
EOQualifier.qualifierWithQualifierFormat("toFilter>0",null));
filteredArray = detailDisplayGroup.displayedObjects();
Observe that it is different from
displayGroup.dataSource().setQualifier...
array = displayGroup.allObjects();
The problem is that, eventhough the displayGroup is qualified, it will
retrive ALL related objects from the db and show/display ONLY those
that match the qualifier; so, if the displayGroup's qualifier is realy
restrictive, there can be a time/resources-consumming isue.
When you find a better approach, please let us know.
Yours,
Dino
_______________________________________________
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.