Fetch problem...
Fetch problem...
- Subject: Fetch problem...
- From: "Oliver Leu" <email@hidden>
- Date: Mon, 17 Mar 2003 23:23:26 +0100
Dear friends
I try to describe my problem:
I have two tables:
Classes
Themes
Every Classes-Row can have many records in the 'Themes' entity.
Fetch:
I wanna fetch all Themes where parentTheme is 'null' AND classesFID Key
matches to a specified Classes Object:
User choosed an Object from that table:
********
*Classes *
********
********
* classID*
********
I wanna fetch from this table:
************
*Themes *
************
************
*themesID *
************
*parentTheme *
************
*classesFID *
************
My best try :-):
argsTheme = new NSMutableArray();
argsTheme.addObject(NSKeyValueCoding.NullValue);
argsTheme.addObject("Thema.klasse");
argsTheme.addObject(wholeClassArrayItem.klassenName());
EOQualifier qual = EOQualifier.qualifierWithQualifierFormat("parentTheme =
%@
AND %@ = %@", argsTheme);
EOFetchSpecification fsThem = new EOFetchSpecification("Thema", qual, null);
themesCorelated2ClassesArray = (NSMutableArray)
ec.objectsWithFetchSpecification(fsThem);
Thanks a lot for your help
Oliver Leu
_______________________________________________
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.