• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOPopup will not give value to DB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >WOPopup will not give value to DB (From: Ute Hoffmann <email@hidden>)

  • Prev by Date: Re: Fetchspec of average related field
  • Next by Date: SOLVED: Trying to create a dynamic url with the components action?
  • Previous by thread: Re: WOPopup will not give value to DB
  • Next by thread: dynamic database connection
  • Index(es):
    • Date
    • Thread