Set default option in a combo



 cboForm = frmMain.getCombo("TABLE_TYPE");    
  
       strContrLoad = "ComboConnector.ashx?strSQL=SELECT CONTENT_VALUE FROM LST_FIELD_OPTIONS where TABLE_NAME = 'PARAMETER_DEF' and FIELD_NAME = 'TABLE_TYPE' and IS_FIELD_HEADER = '0' &strValueColumn=CONTENT_VALUE &strNameColumn=CONTENT_VALUE"     

      cboForm.loadXML(strContrLoad,function(){

     cboForm.addOption("ALL", "ALL");
     
         });

I setup a combo in a form. And the options are get from database connector.

I want to ask how set a default options for choosen. e.g. frist option get fromn database connector as a default options for choosen.

If you need to select the 1th ption - use:

cboForm.selectOption(0)

Thanks for your help !

I can get the result !

You are welcome!