janaja
24 Jul 2012, 4:59 AM
Hello everyone,
I have been trying to get all the passwordfield components that are being displayed on the current active view.
I am trying something along the lines of the following:
var activeView = Ext.Viewport.getActiveItem();
var objects = activeView.query('passwordfield');
for (var index =0; index < objects.length;index++){
//Do stuff
console.log('>>> objects[i] Class name=.... : ' + Ext.getClassName(objects[i]));
}
The class printed is always empty and whenever I try to call any of the passwordfield's APIs I get an exception.
I have been trying to get all the passwordfield components that are being displayed on the current active view.
I am trying something along the lines of the following:
var activeView = Ext.Viewport.getActiveItem();
var objects = activeView.query('passwordfield');
for (var index =0; index < objects.length;index++){
//Do stuff
console.log('>>> objects[i] Class name=.... : ' + Ext.getClassName(objects[i]));
}
The class printed is always empty and whenever I try to call any of the passwordfield's APIs I get an exception.