I have a combo box that is populated by a dataObject (storedProcedure call)
from onbeforeDisplayEvent. Once the page is displayed the user can choose a
value from the combo box then click a button. In the button event I process
the users choice as described below.
My problem is that a null is sometimes obtained from the getSelected()
method. What could cause this? Do I need to set the selectedValue? How do
I obtain that? What else could cause this?
thx,
- marilyn
> > Is there any reason why the following command should not work in NDV4? I
> > seem to have an intermittant problem in this area of the code and I'm
> > wondering if the CSpValue could be the cultrit. Since a classcode is
> > autopopulated the selectedValue should never be null...
> >
> > thx,
> > - marilyn
> >
> >
> > CSpComboBox cbBox = (CSpComboBox) getDisplayField("cmbUserClassCodes");
> > CSpListItem currSlected = (CSpListItem) cbBox.getSelected();
> >
> > CSpSting selectedLabel = new CSpString( currentSelected.getLabel())
> > CSpValue selectedValue = currSelected.getValue();
> >
> > CSpider.putUserSessionObject(Sobj.pgMainPartAss_ClassCode,
> selectedValue);
> >
> >
> _________________________________________________________________________
> >
> > 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]
_________________________________________________________________________
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]