| 52 | |
| 53 | == DataTables == |
| 54 | The dataTables should be set up using column names rather than numbers. This would mean that list-fields in the controller that creates the dataTable can be modified and reused by export formats within the same controller. That is the table can be displayed on the screen with one set of fields and then printed out as a PDF with a slightly different set of fields. The sort and filter information from the dataTable will be preserved and so the pdf will as close as possible reflect the table on the screen when printed. To achieve this the following will need to be considered: |
| 55 | * Set up the mData values in the javascript and use the mDataProps that is returned from the browser |
| 56 | * Check the initialation within the javascript, typically: |
| 57 | * cache, columnSettings, rowActions, bulkActions and groupCoulmns |
| 58 | * may need to add some checks to the fnDataTablesPipline function |
| 59 | * possibly (but probably not) the group and row collapsing functions |
| 60 | * s3FormatRequest will need some changes |
| 61 | * the S3DataTable functions typically html() & json() |