3 "name": "Pman.Dialog.XtupleLocation",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleLocation.bjs",
14 "title": "Edit / Create location",
16 "xtype": "LayoutDialog",
21 "xtype": "LayoutRegion",
26 "xtype": "ContentPanel",
31 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n if (_this.data.location_id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.location_id }});\n }\n \n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
32 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
35 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/location.php'",
42 "name": "location_name",
48 "fieldLabel": "Description",
49 "name": "location_descrip",
56 "displayField": "cust_name",
58 "emptyText": "Select custinfo",
59 "fieldLabel": "Customer",
60 "forceSelection": true,
61 "hiddenName": "location_cust_id",
63 "loadingText": "Searching...",
65 "name": "location_cust_id_cust_name",
67 "qtip": "Select custinfo",
68 "queryParam": "query[cust_name]",
69 "selectOnFocus": true,
70 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> ({cust_number}) </div>",
71 "triggerAction": "all",
72 "valueField": "cust_id",
79 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
84 "|sortInfo": "{ direction : 'ASC', field: 'cust_name' }",
92 "|url": "baseURL + '/Roo/custinfo.php'"
96 "xtype": "JsonReader",
100 "totalProperty": "total",
101 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"cust_name\",\"type\":\"string\"}]"
108 "name": "location_id",
118 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
120 "*prop": "buttons[]",
127 "click": "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
129 "*prop": "buttons[]",