PROMPTEX parameter

Specifies values for parameter fields in a report. See also PROMPT# parameter.

There are two different methods for using this parameter.

Method 1

PROMPTEX-<promptname>[@<subrpt>]=<value>

<promptname> and <subrpt> are non-empty strings that represent names of a parameter field prompt and a subreport that are defined in the report.

<value> is a single or multivalued string.

For example:

Note:    

Remarks

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.

For example:

promptex-sample="Welcome to the \"real\" world"

If the report contains more than one parameter field, multiple values can be passed to parameters.

For example:

promptex-sample="6","1","45"

The enhanced notation also allows for single and multiple range values.

For example:

promptex-sample=["5"-"7"],["1"-"23"],null

The following lists the types of bounded and unbounded intervals you can use.

Bounded interval Unbounded intervals

["<value>"-"<value>"]

("<value>"-)

("<value>"-"<value>"]

["<value>"-)

["<value>"-"<value>")

(-"<value>")

("<value>"-"<value>")

(-"<value>"]

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.

For example:

Method 2

PROMPTEX#=<value>

For example:

promptex0="CA"

Remarks

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