duplicate options in combo


var combo = form.getCombo("tabletype");
 
     combo.loadXML("ComboConnector.ashx?strSQL=SELECT TABLE_TYPE,FIELD_NAME FROM MASTER_PARAMETER_DEF ORDER BY TABLE_TYPE &strValueColumn=FIELD_NAME &strNameColumn=TABLE_TYPE",function(){
        
 combo.addOption("ALL", "ALL");
     
    });

I use the above code to get options in a combo. But in the options, it has many duplicate options in combo. I want to ask how prevent this duplicate options in combo ?

We need direct link or completed demo to reproduce the issue
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Darya,

I provide the comleted demo.



  cboForm = frmMain.getCombo("TABLE_TYPE");

      
       strContrLoad = "ComboConnector.ashx?strSQL=SELECT  TABLE_TYPE,FIELD_NAME FROM MASTER_PARAMETER_DEF ORDER BY TABLE_TYPE &strValueColumn=FIELD_NAME &strNameColumn=TABLE_TYPE"
     
      cboForm.loadXML(strContrLoad,function(){
   cboForm.addOption("ALL", "ALL");
     
 
    });

completed demo.rar (294 KB)

Darya,

I also have relate to combo problem.

I use the combo option which cannot save and update from connector.

But I change the type to “input” then I can do the save and update from connector.

How about this problem ? Or the combo option problem ?

The code is same attaching with last reply !

Сould you provide us a completed demo corresponding to our requirements by link?
docs.dhtmlx.com/doku.php?id=othe … leted_demo