Re: WOPopup will not give value to DB
Re: WOPopup will not give value to DB
- Subject: Re: WOPopup will not give value to DB
- From: Alexander Spohr <email@hidden>
- Date: Mon, 7 May 2007 19:12:28 +0000
Hallo Ute,
Am 07.05.2007 um 13:29 schrieb Ute Hoffmann:
PopUpButton5: WOPopUpButton {
list = farbList; // = List of Dictionarys
displayString = aNotizFarbInfo; = String: concenation of two
valueForKeys (currentFarbWert.farbe + currentFarbWert.secoundvalue)
item = currentFarbWert; = aDictionary
selection = newItem.notizfarbe; = DB-Binding. The DB value is to
be set with currentFarbWert.farbe, a string
value = currentFarbWert.farbe;
}
selection will be one item (currentFarbWert) of farbList.
You can not get currentFarbWert.farbe into newItem.notizfarbe.
You need to either
- run your list = farbList.farbe (I hope farbList is an NSArray, but
you'll loose your displayString then), or
- make selection = selectedFarbe like
void setSelectedFarbe(NSDictionary aFarbDict)
{
newItem.setNotitzfarbe(aFarbDict.objectForKey("farbe"));
}
how to implement
NSDictionary selectedFarbe()
is left as an exercise ;)
you might drop the value-binding, it is not needed here.
atze
Freeport & Soliversum
Alexander Spohr
email@hidden
www.freeport.de
_______________________________________________
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