Re: WOPopupButton selected value
Re: WOPopupButton selected value
- Subject: Re: WOPopupButton selected value
- From: "Goh Keng Boon" <email@hidden>
- Date: Mon, 26 Apr 2004 16:26:32 +0800 (SGT)
Thanks, i finally got it work with a simple NSArray. After submit, the
selected value can be foundin the string that i bound it to "selection"; if i need a pre-select value
for the popupbutton, i justsimiple give a initial value to the "selection" string.
> You should have, in your case, a string variable with the current
> selection bound to "selection".
> That string will also contain the selection made when submitted.
> I dont think you'll need to bind "value" at all.
>
> If there were other types of objects in the array "list" you could use
> the item-object to display a user visible name, by binding one of its
> methods / variables to "displayString". the "selection" then must be an
> object of the same kind as in "item" and in the array "list".
>
> Hope I didnt make things worse... :-)
>
> /John
>
> 2004-04-26 kl. 05.00 skrev Goh Keng Boon:
>
>> Question : if i want the default selected value to be the country "UK"
>> what should i do?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.