Re: Fetching a specified Object.
Re: Fetching a specified Object.
- Subject: Re: Fetching a specified Object.
- From: David LeBer <email@hidden>
- Date: Sat, 22 Mar 2008 21:36:12 -0400
On 22-Mar-08, at 8:48 PM, Gustavo Pizano wrote:
Please keep the replies on list Gustavo.
On Mar 22, 2008, at 7:03 PM, David LeBer wrote:
On 22-Mar-08, at 6:59 PM, Gustavo Pizano wrote:
Hello. I have in my db some convocations with a state. (false,
true) , I wanna fetch the one-ones which state its true. how to do
this.
I was thinking in doing hte following
1 -EOQualifier qual = Convocation.STATE.eq(true), but thtat retunr
me a boolean.
If the Convocation state is modeled as a Boolean, then you need:
EOQualifier qual = Convocation.STATE.eq(Boolean.TRUE);
after doing this I I will make
Convocation con =
Convocation.fetchConvocation(session().defaultEditingContext(), qual);
if I will use only one convocation which is the one with state true,
then I dhousl use a norma <table> to show the info than a WOTable is
it?
I never use WOTable for anything. I think it allows for a dynamic
number of columns/rows. You don't need to use it if all you want is a
simple table.
and second I dunno why when I inserted a convocation just to test, I
put in the state attribute true, which will be changed to 0, when I
make the
EOQualifier qual = Convocation.STATE.eq(Boolean.TRUE);
and then get the convocation and sow it in a table it shows me in
the state textfield false isn't it supposed to be true???
What prototype did you use for state? What is its external column type?
thanks
Gus
(Hint: Attributes are always objects, not primitives)
then I should do some
2 -Convocation con =
Convocation.fetchConvocation(ERXEC.newEditingContext(),qual);
I have problems in numeral 1.
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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