How to simplify load same data on multiple Combo, for example :
var cbUnitHead1 = myForm.getCombo("cbUnitHead1");
var cbUnitHead2 = myForm.getCombo("cbUnitHead2");
var cbUnitHead3 = myForm.getCombo("cbUnitHead3");
cbUnitHead1.load("employee/combo");
cbUnitHead2.load("employee/combo");
cbUnitHead3.load("employee/combo");
I need simplify, like this :
var cbUnitHead1 = myForm.getCombo("cbUnitHead1");
var cbUnitHead2 = myForm.getCombo("cbUnitHead2");
var cbUnitHead3 = myForm.getCombo("cbUnitHead3");
var data = load("employee/combo");
cbUnitHead1.load(data);
cbUnitHead2.load(data);
cbUnitHead3.load(data);
so, I only run query on database 1 time, more faster…
Is this possible? thanks