Re: qualifierWithQualifierFormat ???
Re: qualifierWithQualifierFormat ???
- Subject: Re: qualifierWithQualifierFormat ???
- From: Theodore Petrosky <email@hidden>
- Date: Tue, 4 May 2010 10:43:59 -0700 (PDT)
I may play with that suggestion, however the solution that David sent me is perfect (and uses Wonder)...
I could not figure out how to traverse the relationships until David showed the .dot() format...
Check it out in the mail list.
Ted
--- On Tue, 5/4/10, Joe Kramer <email@hidden> wrote:
From: Joe Kramer <email@hidden>
Subject: Re: qualifierWithQualifierFormat ???
To: "Theodore Petrosky" <email@hidden>
Cc: email@hidden
Date: Tuesday, May 4, 2010, 12:46 PM
Hi Ted,
Couldn't you do something like this where everything in args is an Object?
NSMutableArray args = new NSMutableArray(new Object[] {currentClient, "Released"});
openVersionsQualifier = EOQualifier.qualifierWithQualifierFormat("versions.versionStatus.versionStatusTitle = %@ and client = %@)", args);
readyToBillJobList = Job.fetchDistinctJobs(jobListEC, openVersionsQualifier, null);
Hope that helps,
Joe
Joe KramerCyberApps, Inc.
On Tue, May 4, 2010 at 8:55 AM, Theodore Petrosky <email@hidden> wrote:
NSMutableArray<Client> args = new NSMutableArray<Client>();
args.addObject(currentClient);
openVersionsQualifier = EOQualifier.qualifierWithQualifierFormat("versions.versionStatus.versionStatusTitle = 'Released' and client = %@)", args);
readyToBillJobList = Job.fetchDistinctJobs(jobListEC, openVersionsQualifier, null);
I wanted to put two objects into the args array.
object 1: String
object 2: currentClient
but of course args is of type Client so I can not do that... I did try to use the primaryKey of currentClient, but then the qualifier is expecting an integer... so I casted the string to an int and it worked. but then args is of type Integer... still no joy.
so I tried to let the primaryKey be a string but then the qualifier barked it needed an integer.
Either I just don't get it or there is an easier way that I just don't see.. If I could cast to integer in the qualifier like " clientid = %@::int", args would fix my problem. then I could save all strings in 'args'.
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden