Curt,
I have tried select, it still doesn't work. I looked into the combobox
properties but couldn't figure out what needs to be set. I am attaching the
code below if it helps.
BTW my combobox is only single item select.
Thanks.
-Nimmi
-----------------------------------------------------------------
public int
MCSC2_NETWORK_ELEMENTS_FK_SW_RECORD_ID_onBeforeDisplayEvent(CSpDisplayEvent
event)
{
CSpComboBox theBox = (CSpComboBox) event.getSource();
theBox.removeAllChildren(true);
CSpSelect theDO = (CSpSelect)
CSpider.getDataObject("doSoftwareReleaseList");
theDO.clearDynamicCriteria();
theDO.addDynamicCriterion("MCSC_SOFTWARE_RELEASES_FK_ELEMENT_TYPE",CSpCriter
iaSQLObject.EQUAL_TO_STR_OPERATOR,
getDisplayFieldValue("MCSC2_NETWORK_ELEMENTS_FK_ELEMENT_TYPE"));
theBox.doAutoFill();
CSpValue theSoftwareID =
getDisplayFieldValue("MCSC_NETWORK_ELEMENTS_FK_SW_RECORD_ID");
CSpValue theSoftwareVer =
getDisplayFieldValue("MCSC2_NETWORK_ELEMENTS_FK_SW_VERSION_NUM");
CSpString selectSoftware = new CSpString (theSoftwareID + "," +
theSoftwareVer);
//next line is just for me to see what's in selectSoftware
CSpHtml.sendMessage("selectSoftware =" + selectSoftware);
theBox.select(selectSoftware);
return (PROCEED);
}
-----Original Message-----
From: Curt Springer [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 10, 1999 10:02 AM
To: Shamdasani Nimmi-ANS004
Cc: 'NetDynamics'
Subject: Re: [ND] FW: [ND] Trying to use setValue for a Combobox with
the concatena tion of d atafields
I think you need to use 'select' and/or 'selectAll'.
Also, I think there is a flag or property you need to set in order to have
multiple values selected.
-- Curt Springer, Team ND
At 09:18 AM 9/10/99 -0500, Shamdasani Nimmi-ANS004 wrote:
>I am resending this hoping to get answer from someone.
>
>-Nimmi
>
>-----Original Message-----
>Subject: [ND] Trying to use setValue for a Combobox with the
>concatenation of d atafields
>
>
>Hi All,
>
>My Combobox value is made up of 2 data fields. When I try to use
>ComboBox.setValue with the concatenation of the two datafields it does not
>work. I have tried it different ways e.g.,:
>
>Just concatenating the two data fields.
>
>Putting a comma between the two fields to be concatenated.
>
>But nothing seems to work. Does anyone have an answer to this problem?
>
>Thanks
>
>-Nimmi
>_________________________________________________________________________
>
>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]
_________________________________________________________________________
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]