A Parameterized report is a report (see Report Types) in which no value has been specified for one or more of the parameters in the code used to create the report. Specific values for each field are added (using WebServices or the GUI) each time the report is generated.
In many cases the only difference in the code used to generate two different reports can be the specific value/s of one or more parameter/s in an otherwise identical parameter set, e.g., Customer_A vs. Customer_B or February, 2011 vs. January, 2012.
Reports whose generating code contains only parameters, without values, is called a Parameterized Report. As with reports generated from the GUI, you can use WebServices to call a report and pass the values of parameters to it using the method “GetMyReportsAdvanced”.
To generate a Report, specific values of each parameter are inserted into the Report's XML code which is then run and which then generates each Report. For example, the value Consumption can be entered for the parameter Metric type to generate a Consumption report.
The following XML code for generating a Parameterized Report was created by selecting the parameters shown in the figure below, then saving (Save As) the report. The report can now be accessed using the GUI or using WebServices.
Specific values for each of the three parameters (Metric_Type, Customer, Service_Domain) must be inserted to run the code.
<REPORT_PARAMETERS xmlns="">
<REPORT_ITEM>
<REPORT>
<PARAMETERS>
<METRIC_TYPE IS_MANDATORY="N"></METRIC_TYPE>
<CUSTOMER IS_MANDATORY="N"></CUSTOMER>
<SERVICE_DOMAIN IS_MANDATORY="N"></SERVICE_DOMAIN>
</PARAMETERS>
<TIME IS_MANDATORY="Y">
<FROM_BEGINING>
<TIME_UNIT>MONTH</TIME_UNIT>
</FROM_BEGINING>
</TIME>
</REPORT>
</REPORT_ITEM>
</REPORT_PARAMETERS>
|
Copyright © 2013 CA.
All rights reserved.
|
|