HI All,

I know every body knows this but just for the newcomers.(like me)....
Just wanted this thing to be here - this code won't work if you wanted to display a 
different page based on the click of a URL.
This is bcos, a URL click is different from a submit action of a button/form. You 
cannot gather the combo box selection 
on the same page , on the click of a URL.

public int hrefXXX_onWebEvent(CSpWebEvent event)
        {
                int command = PROCEED;
                command = doAction(event);
                
                CSpComboBox comboBoxAction = (CSpComboBox) 
getDisplayField("comboBoxAction");
                CSpSelectable currSelected = comboBoxAction.getSelected();
                CSpLog.send(this, CSpLog.CRITICAL, "Here on href event " );
                
                if(currSelected != null)
                {
                        CSpValue cspSelectedVal =  currSelected.getValue();
                        CSpLog.send(this, CSpLog.CRITICAL, "Here is the value: "+ 
cspSelectedVal);
                }
                return(command);
                }

The default value of the combobox will always be displayed and not the selected value.



_________________________________________________________________________

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