• 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
Fetch problem fixed by myself :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Fetch problem fixed by myself :-)
      • From: Art Isbell <email@hidden>
  • Prev by Date: Java client: creating a 'subwindow' in code
  • Next by Date: New KBase: "Using Java 1.3.1 With Mac OS X After Java 1.4.1 Is Installed"
  • Previous by thread: Java client: creating a 'subwindow' in code
  • Next by thread: Re: Fetch problem fixed by myself :-)
  • Index(es):
    • Date
    • Thread