"Greg Hart" <[EMAIL PROTECTED]> wrote:
>
>I have a combo box that is prefilled with data, i.e. January,February, etc.  I am
 reading values from a database based on a particular user.  However, the combo box
 value does not get set when I try to set it using:
>
>putPageSessionObject("*cbCreType",resTab.getRowData(0,43));
>
>The value read from resTab.getRowData(0,43) is correct but the combo box still has
 the first value in the list, not the value from the database.  All of the other values
 being set in text boxes work, it is only the combo boxes I have a problem with.
>
>Thanks.
>                                       

Later in the page I have:

//[[SPIDER_EVENT<cbCreType_onBeforeDisplayEvent>
        public int cbCreType_onBeforeDisplayEvent(CSpDisplayEvent event)
        {
                
                CSpComboBox cmb = (CSpComboBox) getDisplayField ("*cbCreType");
                
                CSpValue val = getPageSessionObject("*cbCreType");
                if ((val != null) && (!val.isNull()))
                {
                        cmb.setValue(val);
                }
                return (PROCEED);
        }
        //]]SPIDER_EVENT<cbCreType_onBeforeDisplayEvent>

So thanks for those who suggested .setValue, but I am already using it.  Any other 
thoughts?
_________________________________________________________________________

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