prakashkadakol
28 Jun 2012, 11:13 PM
Hi
I am using two flags multiflag and brodflag initially set false,Based on some conditions am setting true inside store load but problem am facing is inside store load flag set to true but outside store load shows false tried with this.multiflag and this.brodflag but no use still flag set to false,any suggestions or ideas for this ???
function action(){
multiflag=false;
brodflag=false;
/*
this.multiflag=false;
this.brodflag=false;
*/
this.getTablePanel().store.on('load', function(store, records, options) {
//Based on Some condition
multiflag=true;
brodflag=true;
});
console.log(multiflag+"---------"+brodflag);
});
I am using two flags multiflag and brodflag initially set false,Based on some conditions am setting true inside store load but problem am facing is inside store load flag set to true but outside store load shows false tried with this.multiflag and this.brodflag but no use still flag set to false,any suggestions or ideas for this ???
function action(){
multiflag=false;
brodflag=false;
/*
this.multiflag=false;
this.brodflag=false;
*/
this.getTablePanel().store.on('load', function(store, records, options) {
//Based on Some condition
multiflag=true;
brodflag=true;
});
console.log(multiflag+"---------"+brodflag);
});