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",
28 "xtype": "LayoutRegion",
37 "tableName": "report",
41 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
46 "|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}",
47 "|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"
50 "autoExpandColumn": "report_descrip",
57 "beforeload": "function (_self, options)\n{\n options.params['search[name]'] = _this.searchName.getValue();\n}"
59 "*prop": "dataSource",
62 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
69 "|url": "baseURL + '/Roo/report.php'",
74 "xtype": "JsonReader",
75 "totalProperty": "total",
79 "|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]"
85 "xtype": "PagingToolbar",
88 "displayMsg": "Displaying report{0} - {1} of {2}",
89 "emptyMsg": "No report found",
99 "render": "function (_self)\n{\n _this.searchName = _self;\n}",
100 "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
102 "xtype": "TextField",
107 "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
111 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
112 "|xns": "Roo.Toolbar"
116 "|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}"
120 "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
121 "|xns": "Roo.Toolbar"
124 "|xns": "Roo.Toolbar",
130 "cls": "x-btn-text-icon",
131 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
133 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
135 "|xns": "Roo.Toolbar"
140 "xtype": "ColumnModel",
141 "header": "Report name",
143 "dataIndex": "report_name",
144 "|renderer": "function(v) { return String.format('{0}', v); }",
146 "*prop": "colModel[]"
149 "xtype": "ColumnModel",
150 "header": "Report descrip",
152 "dataIndex": "report_descrip",
153 "|renderer": "function(v) { return String.format('{0}', v); }",
155 "*prop": "colModel[]"
163 "xtype": "GridPanel",
166 "fitContainer": true,
167 "tableName": "report",
171 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
177 "autoExpandColumn": "report_name",
180 "|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}",
181 "|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"
186 "*prop": "dataSource",
189 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
194 "xtype": "HttpProxy",
196 "|url": "baseURL + '/Roo/report.php'",
201 "xtype": "JsonReader",
202 "totalProperty": "total",
206 "|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]"
212 "xtype": "PagingToolbar",
215 "displayMsg": "Displaying report{0} - {1} of {2}",
216 "emptyMsg": "No report found",
220 "xtype": "ColumnModel",
221 "header": "Report grade",
223 "dataIndex": "report_grade",
224 "|renderer": "function(v) { return String.format('{0}', v); }",
226 "*prop": "colModel[]"
229 "xtype": "ColumnModel",
230 "header": "Report loaddate",
232 "dataIndex": "report_loaddate",
233 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
235 "*prop": "colModel[]"