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]

Reply via email to