{ "id": "roo-file-4", "name": "Pman.Dialog.XtupleCreditMemoNew", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleCreditMemoNew.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n _this.form.findField('cmhead_cust_id').focus();\n}" }, "closable": false, "height": 120, "modal": true, "resizable": false, "title": "Create new Credit Memo", "width": 500, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "region": "center", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "rendered": "function (form)\n{\n _this.form = form;\n}" }, "xtype": "Form", "|xns": "Roo.form", "items": [ { "listeners": { "add": "function (combo)\n{\n \n Pman.Dialog.XtupleCustomer.show( { id : 0 } , function(res) {\n Roo.log(res);\n // fill in customer\n _this.form.findField('cmhed_cust_id_cust_name').setValue(res.cust_id);\n _this.form.findField('cmhed_cust_id_cust_name').el.dom.value = res.cust_name;\n \n })\n \n}\n\n" }, "allowBlank": false, "displayField": "cust_name", "editable": true, "fieldLabel": "Select Customer", "forceSelection": true, "hiddenName": "cmhead_cust_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "cmhead_cust_id_cust_name", "pageSize": 20, "qtip": "Select custinfo", "queryParam": "query[cust_name]", "selectOnFocus": true, "tpl": "