• 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: Brain failing me... please help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Brain failing me... please help...


  • Subject: Re: Brain failing me... please help...
  • From: Kevin Windham <email@hidden>
  • Date: Fri, 14 Dec 2007 17:34:05 -0600


On Dec 14, 2007, at 11:08 AM, Kevin Windham wrote:

I have a popup menu inside WORepetition which has an iterator object as it's item binding. The popup has a displayString binding. I want the displayString to be stored in a property of the repetitions iterator item. Everything displays properly but I always get null in the iterator's string property when submitting the form. I think it might have something to do with not setting my bindings right, but it seems like it should work.

I have selectedValue bound to iterator.stringProperty.

I have figured out a way around this, but I'm confused about why I need to do this. I think I am not understanding how WOPopups are supposed to work or am just confused about what the bindings mean.


What I ended up doing was using the selection binding and not the selectedValue binding. All I really needed was to get the string that displayed on the popup into a variable. So even though WO didn't complain when I used selectedValue, it always gave me null.

I changed my binding to selection and then got an error message that pointed me in the right direction. What WO wanted to do was give me an object back from the popup. I kind of knew that was what selection was for and was why I wanted to use the selectedValue in the first place. I decided not to fight with it and took the object, pulled out the displayString from it and put it into the variable I was trying to bind in the first place.

Is there an easier way to do this, or is this just what WO does so it can handle a more generic case based on objects?

Regards,
Kevin
_______________________________________________
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


  • Follow-Ups:
    • Re: Brain failing me... please help...
      • From: "Daniele Corti" <email@hidden>
References: 
 >Brain failing me... please help... (From: Kevin Windham <email@hidden>)

  • Prev by Date: WOLips Installer Beta
  • Next by Date: Re: wolips / webobjects build question
  • Previous by thread: Brain failing me... please help...
  • Next by thread: Re: Brain failing me... please help...
  • Index(es):
    • Date
    • Thread