function NewRecord() {
var id = Ext.getCmp('input_id').clear();
var code = Ext.getCmp('input_code').clear();
var description = Ext.getCmp('input_description').clear();
}
I need to remove the value from text box, it works but code behind still gets the id. The code above i do it in js.
Try this.
function NewRecord() {
var id = Ext.getCmp('input_id').remove();
var code = Ext.getCmp('input_code').remove()
var description = Ext.getCmp('input_description').remove();
}
Instead of using Id, you can set a value for the reference property. In view controller, call: this.lookupReference("refNameToTextBox") to get reference to the textbox;
function NewRecord() {
var id = Ext.getCmp('input_id').setValue("");
var code = Ext.getCmp('input_code').setValue("");
var description = Ext.getCmp('input_description').setValue("");
}
you can clear the text value by setValue("")
. please try this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.