Re: fill popup with db values
Re: fill popup with db values
- Subject: Re: fill popup with db values
- From: Chuck Hill <email@hidden>
- Date: Mon, 21 Nov 2005 15:02:24 -0800
On Nov 21, 2005, at 2:17 PM, Jeremy Matthews wrote:
Haven't done this in a while....
I have an Entity named "Tests", with an attribute "testType"
I created a WO popup with the following bound:
list: testList (I created a key for NSArray of "Tests")
selection: newTestsEntry.testType (which is a key of type "Tests")
noSelectionString: "Choose one!"
the popup returns as many dropdowns as there are entries in the
database (put some in manually to test), but they show garbled text:
http://sisuworks.com/Forum/Picture 1.png
I know I'm forgetting a thing or two, and I'm rusty since I've been
working on the Tomcat and JBoss distros....
You are also going to need to bind item and displayString:
item: aTestType (public Tests aTest)
displayString = aTest.testType (assuming this is what you want to
show up in the popup)
BUT - from the image it looks like testType and testScore are null in
the database so don't expect much to appear in the UI. :-)
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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