SELECT.PERFION.REPORTDATA
Selects content from a Perfion database using the special Super-Query syntax used to generate report content. This query only returns the pure data-content, without any layout, but includes all the data formatting as well as table generation based on the Perfion table-designer.
When selecting report-data, it will always be delivered as 3 separate Table data-sources named; Row, Features and Parameters.
Row: Contains the data of all the Items in the output. The columns are prefixed with i_ and c_ to distinguish data on Items in a catalog and data on the categorization structure.
Features: Contains all the metadata about the features used in the output (e.g. Captions, Units, Help-texts etc.)
Parameters: Contains values of the Report parameters used when generating the report. In the GUI, these can be adjusted by the User right before report-generation, however, when generating the data via an Action, these will already be known. If left undefined in the Action, the report will return the default values of any important parameter (e.g. Language).
Properties
From | Must contain (or reference) a connection string, in one of the following ways: Name of a Data Source. Complete Connection-string: Lookup from a named Connection defined in Perfion Go to Administration -> Remote Queries and open a query to see available Remote Connection names: Reference to current Perfion database: |
To | Unused. |
Script | The Perfion Super-Query used for generating data for Reports. Important: Make sure the Super-Query only contains a single feature in each of the From-clauses. The full and correct context for all data must be defined for the Action (e.g. no required user interaction to alter any values during generation). The Super-Query can also be defined dynamically by including parameter references. The parameter values are evaluated in the same way as the script method { 9.16 Method: FillTemplate ( … ) }. |
Properties
From | Name of the Input Data Source which contains the path to a file where Perfion super query is defined. |
To | Name of the Output Data Source. Default TO. |
Parameters
@ItemIDs | Specifies the ItemIDs to report on. A Structured Report An Individual Item Report The ItemIDs can be specified by this parameter in the following ways: |
Map
This Command does not use any value mappings.
Example
Below example shows how data is retrieved for a structured catalog output from the Section with ItemID = 153. This would include all Products within this section, as well as all sub-sections within this hierarchy and all Products contained in all sections of this hierarchy.
- 1 Properties
- 2 Properties
- 3 Parameters
- 4 Map
- 5 Example