Raj,
I worked on this for a long time for a combobox and finally ND support team
filed it as a bug( bugid 7560). I think it is the same with the listbox.
There is no way to get the 2 individual fields directly from the value. You
will have to extract the 2 fields individually from the value of the
listbox. The value from the listbox comes as concatenation of the 2 fields
separated by a comma like field1,field2
I had to do the same for the combobox and this is how I extracted the value:
theSoftware = getDisplayFieldValue("myComboBox");
String theValue = theSoftware.stringValue();
int commaIndex = theValue.indexOf(",");
int totalLength = theValue.length();
String theSoftwareID = theValue.substring(0,commaIndex);
String theSoftwareVer = theValue.substring(commaIndex+1);
It is also not possible to easily select a particular item in such a case
and I had to devise my own workaround. I can give you more details if you
need.
-Nimmi
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 23, 1999 9:34 AM
To: [EMAIL PROTECTED]
Subject: [ND] Getting values from Listbox
Hello All,
I have listbox bound to a dataObject,
the value part of the listbox is bound to two fields, and the format string
is comprised of two fields. How do i get the individual fields from value
part
when the user selects a list item. ND throws a error, if i cast
lisbox.getValue to CSpString.
does it return a vector or something??
Any help/suggestions is greatly appreciated.
TIA,
Raj
_________________________________________________________________________
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]