55.1.9 Detail Report: Input Form: Create an Export document
This is how to create an Export document on the Fields page:
1 Click on the Add button in the Documents - area.
This will create a new document that will initially be named Export Document. This name can be edited in the edit field below the document list.
2 Select the document name in the list if it is not already selected.
3 Select the Table you require in the Available Fields area.
This will display the available fields for that Table in the next drop down list area
If the Table selected is a Data Driven Table, also select the Data Driven type required in the drop down list that will appear below the Field name drop down list.
4 Select the Field that you require.
The field is moved into the Document - Fields selected for display in this document area.
6 Continue to do this for all the fields you require.
Remember that MS Excel will display a max of 256 fields side by side. Also remember that if you want to print the fields, that for A4 format, that the max number of fields is realistically only about 10 side by side.
7 Setting the Document Slave Query or Document Order By area
If this is a General Query, then a Slave Query MUST be defined and there MUST BE one USE SET command. It may merely use a USE SET command that references a Master Query set already created in the Master Query. Click anywhere over the Document Slave Query area to access the Slave Query editor. For help on how to use the Slave Query editor see the Chapter Reports: Query Store on page 441.
If this is a Date Stamp Query then you do not need to enter the Document Order By area if you do not require the output to be sorted in any particular way. Click anywhere over the Document Order By area to access the Query editor. For help on how to use the Query editor see the Chapter Reports: Query Store on page 441.
8 Select the Master Table for Document.
This will determine the treatment of data that has a relation to the fields selected. Remember to ensure there is a USE SET command in the Slave Query that uses the same Table as the Master Table for Document.
9 Go to the Document Headers area
Set Export Headers? checked if you want to export Headers.
If you want the Table name to show in the column headers then check the Table Name in Column Header? checkbox.
Lastly, give the Document a name by filling the Title of Document in Header field. You can set placeholders for this area. This is useful when you want to change the Title dynamically. This could be the case when you want to create an export of data every week automatically. The placeholder could then be set to change every week to reflect the new week without having to edit the Title directly. e.g. The title may be set as follows: Admissions from <PlaceHolder_1> to <PlaceHolder_2>. When the Report executes the first time this may be exported as Admissions from 01/01/2001 to 08/01/2001.One Week later this may change to Admissions from 09/01/2001 to 16/01/2001 without any intervention from you.
To enter a Placeholder, place the insertion point in the Title of Document in Header field where you want the placeholder to appear and click the Place Holder button. A small dialog will appear allowing you to edit the Place Holder name. When you have completed editing this name click on OK and the edited Place Holder name will appear in the Title text at the insertion point selected. You can set multiple placeholders in this way with text interspersed between them.
Note: You can only execute a Detail report from the Output Form. The Input form only allows you to define the report.
Defining multiple Documents for the Report
You can define multiple documents for the same Report. Just keep on Adding new documents and selecting fields for each document as shown above. When these documents are created, they are all created within their own common folder. See Reports: Destination of Reports on page 333 for details. If the documents are largely the same, use the Duplicate button to clone a document.
|