{ "id": "roo-file-72", "name": "Pman.Tab.XtupleStockHistory", "parent": "Pman.Tab.XtupleManage", "title": "Pman.Tab.XtupleStockHistory", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleStockHistory.bjs", "items": [ { "listeners": { "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "background": true, "fitContainer": true, "fitToframe": true, "region": "center", "tableName": "invhist", "title": "Inventory History", "xtype": "GridPanel", "|xns": "Roo", "items": [ { "listeners": { "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}", "celldblclick": "function (_self, rowIndex, colIndex, e)\n{\n var col = _this.grid.colModel.config[colIndex].dataIndex;\n \n if (col !='item_number') {\n return;\n }\n var r = _this.grid.ds.getAt(rowIndex).data;\n \n _this.itemsiteCombo.setValue(r.item_number);\n _this.grid.footer.onClick('first');\n \n \n}" }, "*prop": "grid", "autoExpandColumn": "invhist_comments", "loadMask": true, "xtype": "Grid", "|xns": "Roo.grid", "items": [ { "|xns": "Roo", "xtype": "Toolbar", "*prop": "toolbar", "items": [ { "listeners": { "select": "function (combo, record, index)\n{\n \n \n (function() { \n if (_this.grid) {\n _this.grid.footer.onClick('first'); \n }\n }).defer(100);\n}", "render": "function (_self)\n{\n _this.itemsiteCombo = _self;\n}" }, "allowBlank": true, "displayField": "itemsite_item_id_item_number", "editable": true, "emptyText": "Select itemsite", "fieldLabel": "Item", "forceSelection": true, "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "itemsite_item_id_item_number", "pageSize": 20, "qtip": "Select itemsite", "queryParam": "query[number]", "selectOnFocus": true, "tpl": "