Specifies values for parameter fields in a report. See also PROMPT# parameter.
There are two different methods for using this parameter.
PROMPTEX-<promptname>[@<subrpt>]=<value>
<promptname> and <subrpt> are non
<value> is a single or multivalued string.
http://myServer/myVirtualDirectory/viewrpt.cwr?id=152&apstoken=A1B2&promptex-s ample="hello"
http://myServer/myVirtualDirectory/viewrpt.cwr?id=152&apstoken=A1B2&promptex-s ample@mysubrpt="hello"
user0@subreportname.rpt
However, if the subreport was created inside the main report (with Insert Subreport and using the Report Expert to create the new report), then unless one is added in the Report Name text box in the Insert Subreport dialog box, the name of the subreport usually does not contain a file extension. For example:
prompt0@subreport
The Promptex parameter is an enhanced version of an older Prompt# parameter. In the enhanced notation, quotation marks are used around parameter values to indicate string values. All parameter values are passed to the report as strings, and intended numeric values are translated from strings to numbers by the report.
Note: A backslash \ acts as an escape, so it is substituted by the character that follows it. Quotation marks and backslashes need to be escaped as they are reserved URL characters.
promptex
If the report contains more than one parameter field, multiple values can be passed to parameters.
The enhanced notation also allows for single and multiple range values.
promptex
The following lists the types of bounded and unbounded intervals you can use.
Bounded interval | Unbounded intervals |
---|---|
A square bracket indicates that the interval is closed at that end, and that the specified number is included in the range; a round bracket indicates that the interval is open at that end, and that the specified number is not included in the range.
promptex-s ample=("5"-"11")
Specifies a range of all values between 5 and 11, not including 5 and 11 themselves.
promptex-s ample=["5"-"11")
Specifies a range of all values between 5 and 11, including 5 but not 11.
promptex-s ample=(-"11")
Specifies a range of all values up to, but not including, 11.
If the report contains more than one parameter field, multiple values can be passed to parameters by incrementing the PROMPT index value. For example:
promptex0=
"
CA"
&promptex1="
1000"
Prompts can be specified in the URL in any order; for example, promptex1
can appear before promptex0
. However, index numbers must match the order that the prompts appear in the report.
Note: Reports that have the PROMPTEX# parameter applied do not have their pages shared. Caching will be by user.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |