Data Management Group  
 
TRAINER'S TALK

How to Display Max and Min Date Range Values in Web Intelligence XI

The information in the article applies to
BusinessObjects Web Intelligence XI and higher

Synopsis
How can you display the maximum and minimum values used in a date range prompt on a Web Intelligence report?

Solution
To display the maximum and minimum values used in a date range prompt on a Web Intelligence report use the 'UserResponse' function. To demonstrate this, you will first need to create a simple Web Intelligence report which uses a date range prompt.

Creating the date range report:
  1. Create a Web Intelligence report, and place a date object in the 'Results Object' pane.
  2. Place this same date object into the 'Query Filters' pane.
  3. In the 'Filter Editor', set the 'Operator' to 'Between', and the 'Operand Type' to 'Prompt'.
  4. In the 'Prompt Text' section, enter text for 'From' and 'To', such as "Required Date From" and "Required Date To". Take note of the exact text you are using here, as these will be used in the variables later.
  5. Click 'OK', and then click 'Run Query'.

Creating the variables using the 'UserResponse' function:

  1. At the top of the screen, click 'Show/Hide Variable Editor'.
  2. Give the 'Variable Definition' a name, for example "MinValue".
  3. In 'Formula Definition', type "=UserResponse("Required Date From")".
  4. Click 'Save' and then click 'Close'.
  5. Under 'Variables' on the left, you will now have a 'MinValue' variable to place on the report.
  6. Repeat these steps to create a 'MaxValue' variable.

When theses two variables are placed on the report, they will display the maximum and minimum values that the user enters for the date range prompt.



Have a question for our trainers?
Click here to send your questions!


Overview
Crystal Reports Tips & Tricks
Xcelsius Tips & Tricks
Web Intelligence Tips & Tricks
Trainer's Talk

Main | Company | Consulting | Training | Resources | Contact
Copyright © Data Management Group
All Rights Reserved.
DMG
11870 Fountain Way, Suite 502
Newport News, VA 23606
v. 888.394.1664
f. 757.578.4532
GSA Contract Number: GS-35F-0783N