Академический Документы
Профессиональный Документы
Культура Документы
Business Objects
This is a place to find all information you need about Business objects products. Search Labels
Search
Custom Search
Dashboard (3)
(1)
Designer (11)
Interview Questions (1)
Errors
Webi
Popular Posts @prompt: Description: Use this function to prompt user for a value will be used during report run. For example if you want to run a monthly report a... BO Universe Parameters Overview: This is a step by step tutorial and user guide on how to configure your universe parameters. I will descript in details all opt... Universe tutorial # 1 Overview: This is a fast training on how to create and design SAP business objects XI universe. To build a universe you can use the desi...
@prompt:
Description: Use this function to prompt user for a value will be used during report run. For example if you want to run a monthly report against a specific month, you have to prompt the user to enter the Month or even select it from the list of value displayed.
Before we start:
I assume that you are familiar with BO universe designer and BO web inelegance. If you need to go through universe or Webi rich client tutorial please use the following links: Universe Tutorial: BO Fast user guide Part # 1 [Navigation]: BO Fast user guide Part # 2[Report View mode] Universe Parameters
Syntax: @prompt ('prompt text (1)', 'type (2)', 'list of values (3)', 'mono/multi(4)', 'free/constrained(5)')
Blog Archive 2013 (20) 2009 (5) June (5) Universe tutorial # 1 @prompt:
Parameters:
Param Description Mandatory Values
1 2
Text used to prompt the user when he trying to run/refresh the report Type of the expected value entered by the user and also must be same type of the object that we will use the prompt return value to compare with List of values that will displayed to the user if he click on the Values button when he prompted to enter a value Number of valued allowed
Manage Security with business objects designer. What is Scope of Analysis? 2008 (3)
No
No
No
Follow by Email
Email address... Submit
Google+ Followers
Where to use this function: You can use this function anywhere; this is some places that you can use this function
business-objects-xi.blogspot.com/2009/06/prompt.html
1/6
12/12/13
[Click here for more information about conditions & Pre-defined filters in BO]
Where clause: when you create an object you can use this function in the where clause. Select clause: you can use this function even in the select clause see examples. Derived table: you can use this function in your derived table query. [Click here for more information about how to use prompt with derived tables]
Taha Mohamed
Add to circles
Tips and Tricks: You can use the same prompt in more than one place; just make sure that the prompt text exactly the same when you use it with other universe objects. You can use data conversion function to convert the prompt returned value before using it. For example if the prompt return "Jan09" and you want to compare it with a Date column in database you have to convert it before using it. In our case we will use to_date (@prompt(,,,,,),'MONYY'). If your prompt will return multi value use IN operation instead of equal (=) Note that not all users having permission to view list of values while they trying to run or refresh the report by default. The administrator should grant this permission to this user. If you will use the free mode (user can type what he want) you should give a hint in the prompt text message about the data format expected. For example if the user should enter month in format (MON YY) then the prompt message should be descriptive like "Please enter month like Jan 09".
61 have me in circles
View all
Total Pageviews
89,843
0
Google+ Badge
Taha Mohamed
Follow
Example # 2 (Prompt returns multi values): We need to create a new condition that will prompt user to select cities that he wants to display revenue data Create a new condition with the specification below [Insert --> Condition] Name: Cities prompt Description: Prompt user to select one or multiple cities to filter data according to Where: @select(Dimensions/City) IN @prompt ('Select one or more cities from the list:', 'C', ['Dimensions/City'], Multi, constrained) Notes:
Followers
Join this site
w ith Google Friend Connect
Members (14)
We used Multi key word instead of mono this time this to indicate that the prompt will return one or more values. Note also we used the IN operator instead of equal. This is because the return value is a collection of values not one single value as the previous example.
Example # 3 (user type Free Prompt): We need to create a new condition that will prompt user to type the city that he want to display report data for. Create a new condition with the specification below [Insert --> Condition]
business-objects-xi.blogspot.com/2009/06/prompt.html
2/6
12/12/13
Name: City prompt Description: Prompt user to select or type a city Where:
@select(Dimensions/City) = @prompt ('Type a City name:', 'C', ['Dimensions/City'], mono, free) Notes: Note that we have used free key word instead of constrained. This will give the user the flexibility to type the city name directly without need to select form list of values. Note that if the user type Paris while the stored value in @select(Dimensions/City) is PARIS then the query will return no data. To solve this issue you can use the Upper or lower function that will return the given string in upper case format or lower case format. UPPER(@select(Dimensions/City)) = UPPER(@prompt ('Type a City name:', 'C', ['Dimensions/City'], mono, free)) If you want the user to type multiple cities use this form @select(Dimensions/City) IN @prompt ('Type Cities name:', 'C', ['Dimensions/City'], Multi, free) Please note that user will enter values comma separated without space Like: (Paris,London,Roma,Cairo)
BO Book
Example # 4 (From To prompt): We need to create a new condition that will prompt user to enter "From Date" and "To Date" to display data related to this period in our report. Create a new condition with the specification below [Insert --> Condition] Name: From To prompt Description: Prompt user to enter a specified period Where: @select(Dimensions/As of Date) Between @prompt ('From Date:', 'D', ['Dimensions/As of Date'], mono, constrained) AND @prompt ('To Date:', 'D', ['Dimensions/As of Date'], mono, constrained)
Example # 5 (Use prompt with dimensions): We need to create a new dimension that will display customer segment description based on what language user will select. Prerequisites: Language dimension Created. Segment English Description created. Segment France Description created. Segment Dutch Description created. Segment Arabic Description created. Create a new Dimension with the specification below [Insert --> Dimension] Name: Customer Segment Description Description: Customer Segment Description based on the user selected language. Select: Decode(@prompt ('Select Language:', 'C', ['Dimensions/Language'], mono, constrained), 'EN', @select(Dimensions/Segment English Description), 'FR', @select(Dimensions/Segment France Description), 'DE', @select(Dimensions/Segment Dutch Description), 'AR', @select(Dimensions/Segment Arabic Description), @select(Dimensions/Segment English Description)) Other information about Prompt: How to create and configure Prompt in BO Webi report [http://business-objectsxi.blogspot.com/2013/10/prompt-in-sap-business-objects-webi.html] How to use @Prompt function in derived table [http://business-objectsxi.blogspot.com/2013/10/derived-table-in-sap-business-objects.html] How to create a prompt in pre-defined filter (Condition) in SAP universe designer [http://businessobjects-xi.blogspot.com/2013/10/condition-pre-defined-filter-in.html] Similar functions & Useful Links:
business-objects-xi.blogspot.com/2009/06/prompt.html
3/6
12/12/13
business-objects-xi.blogspot.com/2009/06/prompt.html
4/6
12/12/13
9 comments
Add a comment
Top comments
Anonymous 4 months ago I've a webi report in Business Objects version 4 with a prompting requirement as explained: There are 3 prompts that need to be related: Select Daily or Monthly Select Start Month, End Month Select Start Date, End Date User Interaction needs to be as follows: If Daily is selected, user can enter any Start Date, default End Date to Start Date + 30 Days. User should be able to change the End Date to any value that falls in the range [FROM: Start Date TO: Start Date + 30 Days].The Start Month, End Month prompt should be disabled. If Monthly is selected, user can select Start Month and End Month values with the expected constraint that the End Month is later than the Start Month. The Startago Date and End Date prompts need to be disabled. How do I Anonymous 7 months make this work? Please let me know if further information is needed to suggest a Hi, Thanks for this post, When I try to execute report, I have this message error: une solution. Need this urgently! THANK YOU! erreur de base de donnes s'est produite: [Microsoft][SQL Server Native Client 10.0] [SQL Server] La conversion d'un type de donnes varchar en type de donnes datetime a cre une valeur hors limites..(WIS 10901) I have searched for de prompt function and i find that: #fld1 <= @prompt('#txt1','D','#obj1',Mono,Free,Persistent,,) When executing report; I enter date at format: 01/01/2010 I look a that column en datebase; is a datetime type can you help me. thanks. Ahmed Gad 9 months ago Thanks a lot for the great support.
Anonymous 10 months ago Hi. I must create a prompt to allow to user to select the dimension on which do the analysis. For example he can choose whether to display a measure based on the size of the x or y dimension. Is possible? Can you help me?
Anonymous 1 year ago Can you use with the @PROMPT-command an asterisk(* or %) to select a multi entry (e.g. give me all suppliers where the customer name is starting with an 'C')? If yes: how? If not, is there another solution in BO?
DibtreO 1 year ago Maybe a good solution to this is to do something like that: substr(TABLE.TFIELD,1,2) = @prompt ('2 first words of name:', 'A', ['Dimensions/Name'], mono, free) or TABLE.TFIELD like @prompt ('2 first words of name:', 'A', , mono, free) || '%' TABLE.TFIELD can be changed to @select(DIMENSION) I hope this help Anonymous 1 year ago This is a great post!! you have helped me in my job!! thank you very much!!!
devraj 1 year ago awesome !!!!! explanation...............thank u very much for this info.............
business-objects-xi.blogspot.com/2009/06/prompt.html
5/6
12/12/13
Newer Post
Home
Subscribe to: Post Comments (Atom)
Older Post
business-objects-xi.blogspot.com/2009/06/prompt.html
6/6