Added a new reports page covering "Exporting Report Templates Using phpPgAdmin" actua...
authorYamil Suarez <github@yamil.com>
Thu, 2 Jun 2011 20:10:18 +0000 (16:10 -0400)
committerYamil Suarez <github@yamil.com>
Thu, 2 Jun 2011 20:10:18 +0000 (16:10 -0400)
1.6/reports/report-exporting-report-templates-using-phppgadmin.xml [new file with mode: 0644]

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 (file)
index 0000000..08bd165
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<chapter xml:id="report-exporting-report-templates-using-phpPgAdmin" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"\r
+    xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">\r
+       <info>\r
+               <title>Exporting Report Templates Using phpPgAdmin</title>\r
+       </info>\r
+       <para>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.</para>\r
+       <simplesect xml:id="dumpentirereportstemplatetable">\r
+               <title>Dump the Entire Reports Template Table</title>\r
+               <para>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 <emphasis>name</emphasis>, <emphasis>description</emphasis>, and <emphasis>data</emphasis>. Data defines the actual structure of the report. The <emphasis>owner</emphasis> and <emphasis>folder</emphasis> 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.</para>\r
+               \r
+               <orderedlist>\r
+                       <listitem>Go to the <emphasis role="bold">Reporter</emphasis> schema.  Report templates are located in the <emphasis role="bold">Template</emphasis> table</listitem>\r
+                       <listitem>Click on the link to the <emphasis role="bold">Template</emphasis> table</listitem>\r
+                       <listitem>Click the <emphasis role="bold">export</emphasis> button at the top right of the phpPgAdmin screen</listitem>\r
+                       <listitem>Make sure the following is selected\r
+                                       <listitem>Data Only (checked)</listitem>\r
+                                       <listitem>Format: Select CSV or Tabbed did get the data in a text format</listitem>\r
+                                       <listitem>Download checked</listitem>\r
+                       </listitem>\r
+                       <listitem>Click export button at the bottom</listitem>\r
+                       <listitem>A text file will download to your local system</listitem>\r
+               </orderedlist>\r
+\r
+       </simplesect>\r
+       <simplesect xml:id="dumpdatasqlstatement">\r
+               <title>Dump Data with an SQL Statement</title>\r
+               <para>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.</para>\r
+               <screen>SELECT 1 as owner, name, description, data, 1 as folder FROM reporter.template</screen>\r
+               <para>or use the following to capture your folder names for export</para>\r
+               <screen>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</screen>\r
+               \r
+               <orderedlist>\r
+        <listitem>Run the above query</listitem>\r
+        <listitem>Click the <emphasis role="bold">download</emphasis> link at the bottom of the page</listitem>\r
+        <listitem>Select the file format (CSV or Tabbed)</listitem>\r
+        <listitem>Check download</listitem>\r
+        <listitem>A text file with the report template data will be downloaded.</listitem>\r
+               </orderedlist>\r
+               \r
+       </simplesect>\r
+</chapter>\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r