From 39616b90fa2b6693929109863ac6e9068674e800 Mon Sep 17 00:00:00 2001 From: Yamil Suarez Date: Thu, 2 Jun 2011 16:10:18 -0400 Subject: [PATCH] Added a new reports page covering "Exporting Report Templates Using phpPgAdmin" actually added new page --- ...exporting-report-templates-using-phppgadmin.xml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 1.6/reports/report-exporting-report-templates-using-phppgadmin.xml diff --git a/1.6/reports/report-exporting-report-templates-using-phppgadmin.xml b/1.6/reports/report-exporting-report-templates-using-phppgadmin.xml new file mode 100644 index 0000000000..08bd165872 --- /dev/null +++ b/1.6/reports/report-exporting-report-templates-using-phppgadmin.xml @@ -0,0 +1,51 @@ + + + + Exporting Report Templates Using phpPgAdmin + + Once the data is exported. Database Administrators/Systems Administrators can easily import this data into the templates folder to make it available in the client. + + Dump the Entire Reports Template Table + The data exported in this method can create issues importing into a different system if you do not have a matching folder and owner. This is going to export report templates created in your system. The most important fields for importing into the new system are name, description, and data. Data defines the actual structure of the report. The owner and folder fields will unique to the system they were exported from and will have to be altered to ensure they match the appropriate owner and folder information for the new system. + + + Go to the Reporter schema. Report templates are located in the Template table + Click on the link to the Template table + Click the export button at the top right of the phpPgAdmin screen + Make sure the following is selected + Data Only (checked) + Format: Select CSV or Tabbed did get the data in a text format + Download checked + + Click export button at the bottom + A text file will download to your local system + + + + + Dump Data with an SQL Statement + The following statement could be used to grab the data in the folder and dump it with admin account as the owner and the first folder in your system. + SELECT 1 as owner, name, description, data, 1 as folder FROM reporter.template + or use the following to capture your folder names for export + SELECT 1 as owner, t.name, t.description, t.data, f.name as folder FROM reporter.template t JOIN reporter.template_folder f ON t.folder=f.id + + + Run the above query + Click the download link at the bottom of the page + Select the file format (CSV or Tabbed) + Check download + A text file with the report template data will be downloaded. + + + + + + + + + + + + + -- 2.11.0