PDA

View Full Version : Ext.each Array error



Cougar84
27 Jun 2012, 12:38 AM
I've this problem


readOnlyFields: ["datefield[name'DataLav']", "textfield[name='TitLav']", "textareafield[name'DesLav']", "textfield[name='Ore']"],

setResp: function () {

Ext.each(this.readOnlyFields, function(item, index, allItems){
this.down(item).setReadOnly(true);
}, this);

}




uncaught exception: Invalid ComponentQuery selector: "[name'DataLav']"


But if I write:
this.down("datefield[name'DataLav']").setReadOnly(true);
it works ...

I don't understand why ...

Cougar84
27 Jun 2012, 12:44 AM
Sorry my fault ...