Hi Tracy,
this has been discussed before in the forum (search the archives). I believe the
solution is to use getValue().

Janet


                                                                  
 (Embedded                                                        
 image moved   "Tracy Matheson" <[EMAIL PROTECTED]>         
 to file:      11/17/99 10:12 AM                                  
 pic04864.pcx)                                                    
                                                                  



Please respond to "Tracy Matheson" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Janet Traub/IS/SSC/THD)
Subject:  [ND] List Box Problems





Hi,

I am having a problem with list boxes.  When a user select an item in a list box
and
 they click on a button, the getSelected() sometimes returns null.  This happen
more
 often when the server has alot of traffic.  Any comments would be much
appreciated.
  Here is some code of the button:

  int command = PROCEED;
          CSpValue selectedClient;
          CSpListBox clientList = (CSpListBox)
getDisplayField("lbClientLookup");
  CSpListItem clientCode = (CSpListItem) clientList.getSelected();
          if (clientCode == null)
          {
            setDisplayFieldValue("Message",new CSpString("You must select a
client."));
        command = load(false);
      }
      else
      {
        selectedClient = clientCode.getValue();


Any suggestions would be much appreciated.

Tracy Matheson
The Richards Group
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

pic04864.pcx

Reply via email to