I have the following scenario:

1. Page 1
   Contains a Combobox for "Contact" names, and a button that passes
whatever is selected
   from the Contact ComboBox to a hidden on Page 2.

2. Page 2
   Contains another ComboBox, this one is dynamically populated based on
the Contact name
   in the hidden field on this page. Data in ComboBox is correct. Button
on this page
   sends the selected value from this ComboBox to a static text field on
a third page.
   No special coding done to pass the ComboBox value, just used the
button wizard.

   Code for the onBeforeDisplayEvent for this Combo box is:

   public int ComboBox1_onBeforeDisplayEvent(CSpDisplayEvent event)
   {
      CSpValue ContactNameVal = getDisplayFieldValue("hdnContactName");

      CSpSelect dob = (CSpSelect)
CSpider.getDataObject("doGetContactInfoByContact");
      
      dob.clearDynamicCriteria();
            
      dob.addDynamicCriterion("dbo_SVC_CONTACTS_ContactName",
                             
CSpCriteriaSQLObject.EQUAL_TO_STR_OPERATOR, 
                              ContactNameVal);

      CSpComboBox cb1 = (CSpComboBox) event.getSource();
      cb1.removeAllChildren(true);       
      cb1.doAutoFill();
      ...      

3. Page 3
   The value being displayed in the static text field on this page is
the value that
   was used as the search criteria for dynamically populating the
ComboBox on Page 2 NOT
   the value selected from the ComboBox items.

Anyone have any ideas as to why it's not picking up the selected value
from the ComboBox on page 2, and instead picking up the criteria value?

Thanks,
Keith

_________________________________________________________________________

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