• 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: setting the selection index of a popup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting the selection index of a popup


  • Subject: Re: setting the selection index of a popup
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 9 May 2010 21:17:37 -0700

It is not the spoon that bends, it is your mind.

Get rid of this All Clients nonsense. Bind

noSelectionString = "All Clients";

When the selectedObject is null, treat this as All Clients.

Rejoice.  Profit.

Chuck




On May 9, 2010, at 9:14 PM, Theodore Petrosky wrote:

No, the noSelectionString in not what I am looking for.

I want the zeroth object to be selected... when the popup is first drawn, it's selected object is null..

ted


--- On Sun, 5/9/10, David LeBer <email@hidden> wrote:

From: David LeBer <email@hidden>
Subject: Re: setting the selection index of a popup
To: "Theodore Petrosky" <email@hidden>
Cc: email@hidden
Date: Sunday, May 9, 2010, 11:24 PM

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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: 
 >Re: setting the selection index of a popup (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: setting the selection index of a popup
  • Next by Date: Re: Support for foreign currency formats
  • Previous by thread: Re: setting the selection index of a popup
  • Next by thread: Re: setting the selection index of a popup
  • Index(es):
    • Date
    • Thread