3 "name": "Pman.Tab.XtupleReports",
4 "parent": "Pman.Tab.Admin",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleReports.bjs",
10 "xtype": "NestedLayoutPanel",
15 "xtype": "BorderLayout",
20 "xtype": "LayoutRegion",
29 "xtype": "LayoutRegion",
38 "tableName": "report",
42 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
47 "|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}",
48 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
51 "autoExpandColumn": "report_descrip",
58 "beforeload": "function (_self, options)\n{\n options.params['search[name]'] = _this.searchName.getValue();\n options.params._max_versions = 1;\n}"
60 "*prop": "dataSource",
63 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
70 "|url": "baseURL + '/Roo/report.php'",
75 "xtype": "JsonReader",
76 "totalProperty": "total",
80 "|fields": "[\n {\n 'name': 'report_id',\n 'type': 'int'\n },\n {\n 'name': 'report_name',\n 'type': 'string'\n },\n {\n 'name': 'report_sys',\n 'type': 'int'\n },\n {\n 'name': 'report_source',\n 'type': 'string'\n },\n {\n 'name': 'report_descrip',\n 'type': 'string'\n },\n {\n 'name': 'report_grade',\n 'type': 'int'\n },\n {\n 'name': 'report_loaddate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n }\n]"
86 "xtype": "PagingToolbar",
89 "displayMsg": "Displaying report{0} - {1} of {2}",
90 "emptyMsg": "No report found",
100 "render": "function (_self)\n{\n _this.searchName = _self;\n}",
101 "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
103 "xtype": "TextField",
108 "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
112 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
113 "|xns": "Roo.Toolbar"
117 "|click": "function (_self, e)\n{\n _this.searchBox.setValue('');\n _this.publication_name_combo.setValue('');\n _this.publication_lang_combo.setValue('');\n _this.country_combo.setValue('');\n _this.category_media_id_combo.setValue('');\n _this.role_combo.setValue(''); \n\n \n _this.grid.footer.onClick('first');\n}"
121 "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
122 "|xns": "Roo.Toolbar"
125 "|xns": "Roo.Toolbar",
131 "cls": "x-btn-text-icon",
132 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
134 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
136 "|xns": "Roo.Toolbar"
141 "xtype": "ColumnModel",
142 "header": "Report name",
144 "dataIndex": "report_name",
145 "|renderer": "function(v) { return String.format('{0}', v); }",
147 "*prop": "colModel[]"
150 "xtype": "ColumnModel",
151 "header": "Report descrip",
153 "dataIndex": "report_descrip",
154 "|renderer": "function(v) { return String.format('{0}', v); }",
156 "*prop": "colModel[]"
164 "|activate": "function() {\n _this.vpanel = this;\n if (_this.vgrid) {\n _this.vgrid.footer.onClick('first');\n }\n}"
167 "fitContainer": true,
170 "tableName": "report",
172 "xtype": "GridPanel",
177 "|render": "function() \n{\n _this.vgrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.vpanel.active) {\n this.footer.onClick('first');\n }\n}",
178 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
181 "autoExpandColumn": "report_name",
188 "beforeload": "function (_self, options)\n{\n\n var sel = _this.grid.selModel.getSelected()\n if (!sel) {\n this.removeAll();\n return false;\n }\n options.params.report_name = sel.data.report_name;\n \n \n}"
190 "*prop": "dataSource",
193 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
198 "xtype": "HttpProxy",
200 "|url": "baseURL + '/Roo/report.php'",
205 "xtype": "JsonReader",
206 "totalProperty": "total",
210 "|fields": "[\n {\n 'name': 'report_id',\n 'type': 'int'\n },\n {\n 'name': 'report_name',\n 'type': 'string'\n },\n {\n 'name': 'report_sys',\n 'type': 'int'\n },\n {\n 'name': 'report_source',\n 'type': 'string'\n },\n {\n 'name': 'report_descrip',\n 'type': 'string'\n },\n {\n 'name': 'report_grade',\n 'type': 'int'\n },\n {\n 'name': 'report_loaddate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n }\n]"
216 "xtype": "PagingToolbar",
219 "displayMsg": "Displaying report{0} - {1} of {2}",
220 "emptyMsg": "No report found",
224 "xtype": "ColumnModel",
225 "header": "Report grade",
227 "dataIndex": "report_grade",
228 "|renderer": "function(v) { return String.format('{0}', v); }",
230 "*prop": "colModel[]"
233 "xtype": "ColumnModel",
234 "header": "Report loaddate",
236 "dataIndex": "report_loaddate",
237 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
239 "*prop": "colModel[]"