Re: problem with pop-up display
Re: problem with pop-up display
- Subject: Re: problem with pop-up display
- From: Arturo PĂ©rez <email@hidden>
- Date: Sat, 20 Aug 2005 22:45:17 -0400
On Aug 20, 2005, at 5:42 PM, David LeBer wrote:
On 20-Aug-05, at 4:29 PM, TW wrote:
anybody point me in the right direction on this?
On Aug 19, 2005, at 6:10 PM, TW wrote:
~ not exactly a grizzled veteran so be gentle:-) ~
I have a form designed to capture time reporting information. On
this form are popup lists for selecting the "type" of time, hours,
and minutes that a user is reporting. Those items are wrapped in a
WORepetition so that additional rows with the same data items can be
created and committed to the database. All of my code to create
additional rows and save these to the database is working at this
point. Here's what I'm describing:
http://thetimmy.com/wo/timeentry.png
For hours and minutes popup lists I'm creating arrays of Number
objects and then making NSArrays from those. Accessor methods all
return and set Number objects.
The difficulty I'm having is presented when I try to retrieve my
rows from the database. The rows are retrieved but the minute and
hour popups aren't populated with the values saved in the database.
The "selection" bindings for both are detailRowItem.selectedHours
and detailRowItem.selectedMinutes respectively AND both of those
methods DO have the proper values (you can see the strings printed
to the right of the popups in the image I referenced).
I don't understand why, if the methods referenced in the bindings
are returning values, that those values aren't displayed by the
popups. Any enlightenment would be greatly appreciated.
Can we see some code and a pertinent snippet of your .wod file?
Numbers are abstract types. What concrete type are you using to create
your array? Are you sure it is the same concrete type that is being
returned by EOF. What does your model say for those attributes.
That reminds me of something. The object you've selected had better be
identical to one in the array you setting for your popup list (that's
== not equals() equal).
Oh, and your talking crazy database talk again... rows? what are
those? Y'all better talk Objects round these parts. :-)
Yeah, what he said.
-arturo
_______________________________________________
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