Hi
May be this is relevant:
MyObject firstObject = myObjectArray.objectAtIndex(0);
selectedObject = firstObject;
Then bind this selectedObject to "selection" in WOPopUpButton.
Cheers
Cheong Hee
----- Original Message -----
From: "David LeBer" <[email protected]>
To: "Theodore Petrosky" <[email protected]>
Cc: <[email protected]>
Sent: Monday, May 10, 2010 11:24 AM
Subject: Re: setting the selection index of a popup
On 2010-05-09, at 10:58 PM, Theodore Petrosky wrote:
maybe i am barking up the wrong tree... but, I am reading a list (array)
of clients for a popup. after the array is read, I create a new client
called "All Clients" and add it to the array at index 0.
My WOPopup displays and works... however, how can I set the 'current'
object to be the zeroth object?
something like myPopup.setCurrentObjectAtIndex(0); would be nice.
I am Observing a checkbox (in the same Form) and I stuck some javaScript
to submit the form to see what happens and voila.. the 'last' object shows
up in the popup.
Can I wrap the popup in an AjaxUpdateContainer and fire it in code? I know
that if the AUC had an id = "myAUC" is automatically creates a javascript
myAUCUpdate(). But can I access this from a method?
Or is this even what i want...???
WOPopupButton has a 'noSelectionString' binding. Does that do what you want?
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]