Hi,
I have a form with the following structure:
dhxLUWin = dhxWins.createWindow({
id:"linkuserwin",
left:20,
top:75,
width:350,
height:230,
modal:false,
resize:false,
center:true,
header:true,
caption:"Link RADAR Users to Account"
});
dhxLUWin.attachEvent("onClose", function(win){
win.hide();
return false; //never close the window. because we dont want to slow syste mby recreating the dialog formThe following static form is loaded here
});
dhxLUWin.button("minmax").hide();
dhxLUWin.button("park").hide();
wpos = dhxLUWin.getPosition();
dhxLUWin.setPosition(wpos[0],75);
//dialog form for the System access popup
dhxLayoutLU = dhxLUWin.attachLayout({
pattern: "1C",
cells: [{id: "a", header: false}]
});
dhxFormLU = dhxLayoutLU.cells("a").attachForm();
LUFormData = [
{type: "settings", labelWidth: 250, offsetLeft: 30},
{type: "combo", name: "nonaccombo", label:"Select RADAR Users", comboType: "checkbox",filtering:true,readonly:true, options:[
]},
{type: "button", name: "submit", value: "Add Selected Users", inputLeft:75, inputTop:65, position:"absolute"},
]
dhxFormLU.loadStruct(LUFormData);
dhxLUWin.hide();
Everytime the window(dhxLUWin) is shown, the form options are to be refreshed from the server. The function that does this is shown below
function linkOtherUsers(){
dhxLUWin.show();
dhxLayoutLU.cells("a").progressOn();
window.dhx4.ajax.post("/app/ajax_admin/<?=$account->id?>", "mode=getusercomboxml", function(response){
dhxFormLU.reloadOptions("nonaccombo", response.xmlDoc.responseXML); //loads non account users into combo async
dhxLayoutLU.cells("a").progressOff();
});
};
I can see the network response of the xml(screenshot) but the combo options are not getting reloaded with the new options received(its blank). Any idea what could be wrong? I am using the latest PRO version of the dhtmlx framework.