
Gateway Reporting Developer Guide 49
Reporting Samples
Creating a Report Template
B
Creating a Report Template
This sample demonstrates how to create a report template from a standard Daily Activity
Report.
Creating a Report Template Request
This request creates a report template from a Daily Activity Report with a report template
name of ‘My Template.’ It sets the values of two parameters (name1 and name2). The
parameter names and values are stored in the database.
<?xml version="1.0" encoding="UTF-8"?>
<reportingEngineRequest>
<authRequest>
<user>User</user>
<vendor>Vendor</vendor>
<partner>Partner</partner>
<password>Passwor d</password>
</authRequest>
<createTemplateRequest>
<templateDefinition>
<templateName>My Template</templateName>
<reportName>DailyActivityReport</reportName>
<reportParam>
<paramName>name1</paramName>
<paramValue>value1</paramValue>
</reportParam>
<reportParam>
<paramName>name2</paramName>
<paramValue>value2</paramValue>
</reportParam>
</templateDefinition>
</createTemplateRequest>
</reportingEngineRequest>
NOTE: To retrieve all of your report templates, pass <getTemplateRequest/>, without
specifying any child elements.
Creating a Report Template Response
In the response to creating a report template, the response code of 100 indicates that the
request completed successfully. Thereafter, when ‘My Template’ is run, these parameters are
automatically retrieved from the database and used to generate the Daily Activity Report.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<reportingEngineResponse>
<baseResponse>
<responseCode>100</responseCode>
Komentarze do niniejszej Instrukcji