D.4 Parameter Tag
The create tag can also contain parameter tags. These tags pass report parameters to the report. The parameter tag has three required attributes: name, value, and type. The name attribute specifies the name of the parameter, the value attribute specifies the value of the parameter, and the type attribute specifies the data type of the parameter value. The allowed parameter types are listed in Appendix E: JSP Tag Library Reference. If the type is “date”, you also need to include the format attribute. The format attribute specifies the format in which the value is being passed and should use the format specified in java.text.SimpleDateFormat.
<sree:create reportId="report1" name="A Report" processPage="false">
<sree:parameter name="State" value="NY" type="string"/>
<sree:parameter name="Order Date" value="2003-05-01"
type="date" format="yyyy-MM-dd"/>
</sree:create>
If a report parameter has the same name as a JSP request parameter, it will be passed to the report without having to include a parameter tag. Using a parameter tag in this case will override the value of the JSP parameter.
| << D.3 Create Tag | © 1996-2013 InetSoft Technology Corporation (v11.5) | D.5 Header Tag >> |