如何重新加载数据存储extjs 4.2

时间:2018-09-12 03:56:02

标签: java extjs extjs4

我有商店取消按钮操作

cancelV_t_opname_form: function(){
        var getT_OPNAME     = this.getT_OPNAME();
        var getV_t_opname   = this.getV_t_opname();
        var getV_t_opname_form= this.getV_t_opname_form(),
            form            = getV_t_opname_form.getForm();
        var getV_t_opnamedet = this.getV_t_opnamedet();
        var getV_t_opnamedet_form = this.getV_t_opnamedet_form();
        var opnamedetStore  = this.getStore('s_t_opnamedet');  

这是功能重新加载取消按钮的动作

form.reset();
            getV_t_opname_form.setDisabled(true);
            getV_t_opname.setDisabled(false);
            getT_OPNAME.setActiveTab(getV_t_opname);

            getV_t_opname.getStore().reload();
            getV_t_opname.focus(false, true);

            /* DETAIL grid */
            opnamedetStore.removeAll();
            opnamedetStore.reload();

0 个答案:

没有答案