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 ...
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 ...