- ExtJS If there is a common form, the show () method should be called first, then reset the data, otherwise the reset () method will fail and the page will leave the data of the previous form.
Additem:function () {this.addDlg.show (); This.addDlg.setOper (' Add ');},/* Modify user information operation */upditem:function (grid, RowIndex, Colindex) {/*if (!ismpyh.common.ishaspermission (This.modauth, 3)) {Ext.MessageBox.alert (' hint ', ' sorry, you do not have permission to perform this operation! '); return;} */this.adddlg.show (); This.addDlg.setOper (' upd '); var r=this.getstore (). GetAt (RowIndex); if (r!=null) { This.addDlg.panel.formPanel.site_name.setValue (r.data.site_name); This.addDlg.panel.formPanel.site_ Code.setvalue (R.data.site_code); This.addDlg.panel.formPanel.site_addr.setValue (r.data.site_addr);},
The reset () method in ExtJS is invalid