{ "id": "roo-file-23", "name": "Pman.Dialog.XtuplePurchaseOrderNew", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtuplePurchaseOrderNew.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n _this.form.findField('pohead_vend_id').focus();\n}" }, "closable": false, "height": 180, "modal": true, "resizable": false, "title": "Pick Vendor", "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": { "select": "function (combo, record, index)\n{\n \n Roo.log(record);\n _this.form.setValues({\n pohead_curr_id : record.data.vend_curr_id,\n pohead_curr_id_curr_name : record.data.vend_curr_id_curr_name\n \n });\n}", "render": "function (_self)\n{\n _this.vendor = _self;\n}" }, "allowBlank": false, "displayField": "vend_name", "editable": true, "fieldLabel": "Select Vendor", "forceSelection": true, "hiddenName": "pohead_vend_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "pohead_vend_id_vend_name", "pageSize": 20, "qtip": "Select a vendor", "queryParam": "query[vend_name]", "selectOnFocus": true, "tpl": "