function f_prosedurpmb() { var id_module = '0'; var form_bp_general = new Ext.form.FormPanel({ border: false, id: 'form_bp_general', labelAlign: 'top', buttonAlign: 'left', bodyStyle: 'padding:5px 5px 5px 5px', // atas, kanan, bawah, kiri monitorValid: true, title: 'Prosedur PMB', tbar: [{ text: 'Simpan', iconCls: 'silk-save', handler: function() { ubah_grid('form_bp_general'); } }], layout: 'form', // autoScroll: true, reader: new Ext.data.JsonReader({ root: 'data', totalProperty: 'results', id: 'id', fields: [{ name: "idsoppmb", mapping: "idsoppmb" }, { name: "deskripsi", mapping: "deskripsi" }] }), items: [{ layout: 'fit', items: [{ xtype: 'htmleditor', height: 500, anchor: '100% 100%', name: 'deskripsi', id: 'deskripsi' }, { xtype: 'textfield', name: 'idsoppmb', hidden: true //, }] }], listeners: { afterrender: module_afterrender } }); function module_afterrender() { if (id_module != "") { form_bp_general.getForm().load({ url: BASE_URL + 'pendaftaran/c_prosedurpmb/grid', params: { id_module: id_module }, success: function(form, action) {}, failure: function(form, action) { Ext.MessageBox.alert('Failure', 'Fail to get data'); }, waitMsg: 'Loading..' }); } } function ubah_grid(namaForm) { var msgplus = ''; var form_nya = Ext.getCmp(namaForm); Ext.MessageBox.show({ title: "Konfirmasi", width: 350, msg: msgplus + "