![]() |
Business Objects Insights from Dataspace December 2008 e-newsletter tip: USING THE USER RESPONSE AND REPLACE FUNCTIONS TO FORMAT YOUR REPORT In this example, we will use the User Response function to capture the values for a date prompt and also to capture the values for status. We will then use the Replace function and format the responses in a more user friendly format. Our report has the following prompts: The syntax for the User Response function is: NOTE: The "name of the data provider" parameter is optional. We will create the following variables: Name: UserResponse States NOTE: The prompt message must be typed exactly the way it is displayed to the user, including any punctuation and capitalization. Okay, we can now include these variables in our report title as shown below:
Each time the report is refreshed, the values selected will be displayed in the cells. The syntax of the Replace function is: NOTE: the parameters are separated by a semi-colon (;) and we are also replacing the semi-colon in the user response We will also create a variable that will replace the timestamp in our date with nothing NOTE: Our timestamps are always "12:00:00 AM" Now, let’s replace the variables in our report title with the new ones:
Founded in 1994, Dataspace is a consulting and solutions firm focused on the flawless execution of Business Intelligence and Data Warehousing initiatives. Visit www.dataspace.com.
|
|
| © 2008 Dataspace. Data warehouse and business intelligence consulting. All rights reserved. |