{ "name" : "Pman.Dialog.BAdminCoreEnum", "parent" : "", "title" : "", "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminCoreEnum.bjs", "permname" : "", "modOrder" : "001", "strings" : { "d5cf6a6c4887716d7a14a84d9ba81b02" : "Add / Edit Pulldown Option", "b48968e1c912da07df5e8d6d246291ec" : "Display Name", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "688a7766da608ca2b2fe6a7d1c0d7ccb" : "Sequence Number", "49ee3087348e8d44e1feda1917443987" : "Name", "c9cc8cce247e49bae79f15173ce97354" : "Save" }, "items" : [ { "String cls" : "enable-overflow", "xtype" : "Modal", "$ xns" : "Roo.bootstrap", "String title" : "Add / Edit Pulldown Option", "items" : [ { "listeners" : { "actionfailed" : "function (_self, action)\n{\n Roo.bootstrap.MessageBox.alert('Error', action.result.errorMsg);\n}", "actioncomplete" : "function (_self, action)\n{\n if(action.type == 'setdata') {\n \n if(_this.data.id * 1 > 0) {\n \n this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});\n } \n \n return;\n }\n \n if (action.type == 'load') {\n \n _this.data = action.result.data;\n \n return;\n }\n \n \n if (action.type == 'submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(this, action.result.data);\n }\n \n return; \n }\n}", "render" : "function (_self)\n{\n _this.form = _self;\n}" }, "$ url" : "baseURL + '/Roo/Core_enum' ", "xtype" : "Form", "String labelAlign" : "top", "$ xns" : "Roo.bootstrap", "Boolean loadMask" : true, "items" : [ { "String name" : "name", "xtype" : "Input", "string fieldLabel" : "Name", "$ xns" : "Roo.bootstrap" }, { "String name" : "display_name", "xtype" : "Input", "string fieldLabel" : "Display Name", "$ xns" : "Roo.bootstrap" }, { "String name" : "seqid", "xtype" : "Input", "string fieldLabel" : "Sequence Number", "String inputType" : "number", "$ xns" : "Roo.bootstrap" }, { "Boolean checked" : true, "String valueOff" : 0, "xtype" : "CheckBox", "String boxLabel" : "Active", "$ xns" : "Roo.bootstrap", "String inputValue" : 1 }, { "String name" : "id", "xtype" : "Input", "String inputType" : "hidden", "$ xns" : "Roo.bootstrap" }, { "String name" : "etype", "xtype" : "Input", "String inputType" : "hidden", "$ xns" : "Roo.bootstrap" } ] }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.dialog.hide(); \n}" }, "xtype" : "Button", "$ xns" : "Roo.bootstrap", "String html" : "Cancel", "* prop" : "buttons[]" }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.form.doAction(\"submit\");\n \n return;\n}" }, "String weight" : "primary", "xtype" : "Button", "$ xns" : "Roo.bootstrap", "String html" : "Save", "* prop" : "buttons[]" } ] } ] }