Use a Conditional Block List to contain the prompt that you wish to display conditionally. In addition, place a re-prompt Prompt Button on the prompt page. Steps: These steps assume that you have already created your report and have defined your parameter filters. The filter for the optional prompt must have its Usage property set to Optional. To build the prompt page:
- Add a prompt page to your report
- In the File menu, click Variables.
- Create a variable of type Boolean.
- Add the following expression: ParamDisplayValue("Display_Option")= "Show"
- Add a table to the prompt page with the appropriate number of columns and rows for your needs.
- Add a prompt to one of the table cells.
- Select the parameter that this prompt resolves itself to.
- Add another prompt to the page, and set this prompt to resolve itself to the boolean variable created in step 3.
- Use the Static Choices property of the prompt to create values for it to display: Example: Use Display Show Show Hide Hide
- Add a Prompt Button to a cell on the table.
- Change the Type property of the Prompt Button to Re-prompt.
- Add a Conditional Block List to the one of the table cells
- Select the Conditional Block on the page.
- Set the Conditional Block property to the variable created in step 3.
- Set the Current Block property to Yes.
- Add the prompt that you wish to display conditionally to the Conditional Block object.
- Set the Current Block property to No. The Conditional Block appears empty.
- For the hidden prompt to display, select Show and click the Re-prompt button.
No comments:
Post a Comment