Array List values in select Option in Dhtmlx Form


I want to show ArrayList of DB values in dhtmlxform6.4.4 select Dropdown.Unable to set values in that select Options.Please give me solution.Thanks

It’s not an officially sanctioned way, but you can access the config of the select item and insert the new items using the push() function of the array, or just replace the entire array. I demonstrated the array push method in this snippet: https://snippet.dhtmlx.com/yrloz7yh

You can use the dhx.ajax functions to get the values from the database, then push them onto the item’s config.options array.

dhx.ajax.get(url).then(function(data){
    for (var key in data){
        if (data.hasOwnProperty(key)){
            form.getItem("emptype").config.options.push(data[key]);
        }
    }
});