Hi there, On 29/11/2005, at 7:29 AM, Jeremy Matthews wrote:
For some reason, my popup (list populated by a db fetch) now querys AND displays correctly, but selecting the value in the popup still produces null when submitting the object for insertion. The text fields are fine, so the method is probably sound. I'm assuming my wopopup bindings are somehow incorrect. Here are the current bindings:displayString: testTypeEnumerator.testType item: testTypeEnumerator list: testList noSelectionString: "Select A Test..." selection: newTestsEntry.testType
No, selection needs to be bound to the object selected _not_ the display string.
displayString: is showing correct attribute item: not sure why I need the enumerator, but its therelist: working, since the attributes are displayed correctly from the db fetchnoSelectionString: not really important, but thereselection: not sure if this is working...this is the important binding that takes the selected value, no?Entity is caled "Tests" attributes are: testType, testScore, testGrade, testName new entry is called "newEntry"
So you should have:
YourPopup: WOPopUpButton {
displayString = testTypeEnumerator.testType;
item = testTypeEnumerator;
list = testList;
noSelectionString = "Select A Test...";
/* the all important... */
selection = newEntry;
}
with regards,
--
Lachlan Deck
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
