{ "id": "roo-file-29", "name": "Pman.Dialog.XtupleSalesOrderNew", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleSalesOrderNew.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n _this.form.findField('cohead_cust_id').focus();\n}" }, "closable": false, "height": 180, "modal": true, "resizable": false, "title": "Create new Sales Order", "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.setValues({\n cohead_cust_id: res.cust_id,\n cohead_cust_id_cust_name : res.cust_name,\n cohead_curr_id : res.cust_curr_id,\n cohead_curr_id_curr_name : res.cust_curr_id_curr_name\n });\n \n \n })\n \n}\n\n", "select": "function (combo, record, index)\n{\n \n Roo.log(record);\n _this.form.setValues({\n cohead_curr_id : record.data.cust_curr_id,\n cohead_curr_id_curr_name : record.data.cust_curr_id_curr_name\n \n });\n}" }, "allowBlank": false, "displayField": "cust_name", "editable": true, "fieldLabel": "Select Customer", "forceSelection": true, "hiddenName": "cohead_cust_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "cohead_cust_id_cust_name", "pageSize": 20, "qtip": "Select custinfo", "queryParam": "query[cust_name_begin]", "selectOnFocus": true, "tpl": "