Re: [Newbie] Using FetchSpecs
Re: [Newbie] Using FetchSpecs
- Subject: Re: [Newbie] Using FetchSpecs
- From: Arturo Pérez <email@hidden>
- Date: Fri, 30 Apr 2004 19:21:57 -0400
On Apr 30, 2004, at 5:57 PM, Lucas Haley wrote:
Heya all --
I guess my question now is whether I need to get a new fetchSpec, as in
the code below, or if I just use the WODisplayGroup created when I
dragged the fetchSpec into Builder.
WODisplayGroup is way overkill for this. I think all you need is
NSDictionary = new NSDictionary(new Object[] { user, password },
new Object[] { "username", "password" }); // these are the
$parameters in the fetchspec
NSArray users =
EOUtilities.objectsWithFetchSpecificationAndBindings(session().defaultEd
itingContext(),
"D20members", "login", userAndPw);
Don't forget to encrypt the password.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
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.