Re: WODisplayGroup - how to insert default values?
Re: WODisplayGroup - how to insert default values?
- Subject: Re: WODisplayGroup - how to insert default values?
- From: Wolfram Stebel <email@hidden>
- Date: Thu, 21 Apr 2005 14:24:27 +0200
Am 21.04.2005 11:03 Uhr schrieb "Clive Roberts" unter
<email@hidden>:
> The component calls "charitymemberDisplayGroup.insert();" to insert new
> values into the display group. and calls saveChanges() to persist
> objects.
> The component WOTextFields have settings
> "charitymemberDisplayGroup.selectedObject..."
>
> QUESTION: how should I set the value of the "type"?
> I have tried e.g. ... .takeStoredValueForKey("CM", "type"); on the
> display group's selectedObject(), but when I save I get an exception
> saying the value for type must not be null!
> What am I missing?
i would say, the selectedObject () can be different to the fresh inserted
object.
therefor insert () returns a reference to the new object.
lets say x = ...insert (); x.takeValue.....
could fix it.
Wolfram
_______________________________________________
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