Fetch problem fixed by myself :-)
Fetch problem fixed by myself :-)
- Subject: Fetch problem fixed by myself :-)
- From: "Oliver Leu" <email@hidden>
- Date: Tue, 18 Mar 2003 14:25:33 +0100
Hello again
I found my mistake:
wrong: argsTheme.addObject("Thema.klasse");
right: argsTheme.addObject("klasse.klassenName");
I'm very happy! :-)
Have a nice day(!
Oliver
> 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.