How to dynamically set a value on a combo
myCombo.store.load({ callback:
function(){
myCombo.setValue(myValue);
}
});for(var i = 0; i < 100; i++){
...
(function(i){
// Same code as above but inside the scoped function
myCombo.store.load({ callback:
function(){
myCombo.setValue(myValue[i]); //This i is
}
});
})(i); //This is the i of the cycle
...
}Last updated