]> git.evergreen-ils.org Git - working/Evergreen.git/blob - 1.6/reports/report-exporting-report-templates-using-phppgadmin.xml
remove tool dirctories - these have been moved to a new github dirctory
[working/Evergreen.git] / 1.6 / reports / report-exporting-report-templates-using-phppgadmin.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <chapter xml:id="report-exporting-report-templates-using-phpPgAdmin" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"\r
3     xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">\r
4         <info>\r
5                 <title>Exporting Report Templates Using phpPgAdmin</title>\r
6         </info>\r
7         <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
8         <simplesect xml:id="dump-entire-reports-template-table">\r
9                 <title>Dump the Entire Reports Template Table</title>\r
10                 <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
11                 \r
12                 <orderedlist>\r
13                         <listitem>Go to the <emphasis role="bold">Reporter</emphasis> schema.  Report templates are located in the <emphasis role="bold">Template</emphasis> table</listitem>\r
14                         <listitem>Click on the link to the <emphasis role="bold">Template</emphasis> table</listitem>\r
15                         <listitem>Click the <emphasis role="bold">export</emphasis> button at the top right of the phpPgAdmin screen</listitem>\r
16                         <listitem>Make sure the following is selected\r
17                                 <orderedlist>\r
18                                         <listitem>Data Only (checked)</listitem>\r
19                                         <listitem>Format: Select CSV or Tabbed did get the data in a text format</listitem>\r
20                                         <listitem>Download checked</listitem>\r
21                                 </orderedlist>\r
22                         </listitem>\r
23                         <listitem>Click export button at the bottom</listitem>\r
24                         <listitem>A text file will download to your local system</listitem>\r
25                 </orderedlist>\r
26 \r
27         </simplesect>\r
28         <simplesect xml:id="dump-data-sql-statement">\r
29                 <title>Dump Data with an SQL Statement</title>\r
30                 <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
31                 <screen>SELECT 1 as owner, name, description, data, 1 as folder FROM reporter.template</screen>\r
32                 <para>or use the following to capture your folder names for export</para>\r
33                 <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
34                 \r
35                 <orderedlist>\r
36          <listitem>Run the above query</listitem>\r
37          <listitem>Click the <emphasis role="bold">download</emphasis> link at the bottom of the page</listitem>\r
38          <listitem>Select the file format (CSV or Tabbed)</listitem>\r
39          <listitem>Check download</listitem>\r
40          <listitem>A text file with the report template data will be downloaded.</listitem>\r
41                 </orderedlist>\r
42                 \r
43         </simplesect>\r
44 </chapter>\r
45 \r
46 \r
47 \r
48 \r
49 \r
50 \r
51 \r
52 \r
53 \r