Ext.define('erp.view.scm.sale.ProductKind',{ extend: 'Ext.Viewport', layout: 'border', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ xtype: 'erpFormPanel', region: 'center', width: '100%', saveUrl: 'scm/sale/saveProductKind.action', deleteUrl: 'scm/sale/deleteProductKind.action', updateUrl: 'scm/sale/updateProductKind.action', getIdUrl: 'common/getId.action?seq=PRODUCTKIND_SEQ', keyField: 'pk_id', codeField: 'pk_code', refresh: function(form) { var id = form.down('#pk_id').getValue(); if(id) { form.FormUtil.loadNewStore(form, { caller: caller, condition: "pk_id=" + form.down('#pk_id').getValue() }); } } }] }); me.callParent(arguments); } });