Variables in Prompt Label

Hi,
Is it possible to use any variables(session/repository/presentation) in Prompt Labels?
Thanks,
Satheesh

Hi sateesh,
You can use presentation variables in your dashboard prompts.How to use it you can follow this
http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
UPDATED POST
I suppose no we cant do it,never i tried or heard of it.Anyways got a blog from john
http://obiee101.blogspot.com/search/label/VARIABLES
hope answers your question.
Cheers,
KK
Edited by: Kranthi.K on Mar 24, 2011 1:21 AM

Similar Messages

  • Using variable in prompt label

    Hi,
    Does anybody now if/how you can use a session variable in a prompt label? I want to make a multiligual prompt.
    regards
    John
    Edited by: John Minkjan on Apr 15, 2009 4:28 AM

    Stijn,
    That did the trick!
    I will put it on the blog ASAP.
    EDIT: http://obiee101.blogspot.com/2009/04/obiee-multi-lingual-prompt.html
    regards
    John
    http://obiee101.blogspot.com/
    Edited by: John Minkjan on Apr 15, 2009 10:44 AM

  • Multi language support for reports and prompts labels

    Is there a way to configure reports prompts labels with session\presentation variables,
    in order to support multi language interface?

    Deepak,
    It works fine..i have tested.
    Nir,
    Here is the solution for your requirement
    Requirement1
    I want to label the listbox with X, where X is either 'Categories' or 'Products'.1.In your rpd, create a new session variable init block
    Name : DynamicName
    Query: select case when ':USER' = 'USER1' then 'REGION1' else
    CASE WHEN ':USER' = 'USER2' THEN 'REGION2' end end from dual
    Assign the above query’s result to a session variable; DISP_NAME
    2.Double click on the presentation column(in presentation layer) that is supposed to change dynamically->check the box ”Custom Display Name” -> Type in VALUEOF(NQ_SESSION. DISP_NAME)
    3.With the assumption that you already have created a prompt with the above column, login as USER1, you will see the prompt label as 'REGION1' (value is fetched from the session block query).Similarly login as ‘USER2’ and check the prompt label to show 'REGION2'
    This solves the first requirement.
    Requirement2
    On the dashboard I would like to present the title: 'Report by X', where X is either 'Categories' or 'Products'.1.Navigate to your report in answers
    2.Add a column with the formula, case when VALUEOF(NQ_SESSION.USER)='USER1' THEN 'Report by Categories' when VALUEOF(NQ_SESSION.USER)='USER2' THEN 'Report by Product' else 'Your custom/default title’ end
    3.Add a narrative view to the report (remove the existing title view) and the give the reference as the column added in step 2.Save the report.
    4.Logout and login as USER1, you can see the report title as 'Report by Categories' and for USER2 , it will be 'Report by Product'
    Let me know if this solves your issue.
    Rgds,
    Dpka

  • Prompt Labels missing on the dashboard after upgrade to 11.1.1.6.9

    We upgraded to 11.1.1.6.9 and all the dashboard prompt labels where the labels are not customized are missing. Has anyone else encountered this issue?
    Thanks
    Edited by: 947403 on Mar 20, 2013 9:06 AM

    Hi,
    1. First try to compile invalid objects using adadmin.
    2. If the objects are still invalid, then compile them manually.
    You can use the custom script from the following link
    http://www.oracle-base.com/articles/misc/RecompilingInvalidSchemaObjects.php
    3. If invalids still exists please post few objects here which are invalid.
    Thanks

  • Dynamic Prompt/Label/Display title

    Hi JHeadStart team,
    I use UIX and 100% of my application is generated by JHeadStart.
    I have a little problem.
    Which it's the best way to change "label, prompt, column header, display title" manually.
    Because this information is stocked in a table of the database.
    Regards,
    Luc

    Luc,
    I am not sure I understand your question. Do you want to read the prompts and labels at runtime from a database table?
    If so, you should generate your JHeadstart application with nls turned on and you should use a java class as resource bundle type (extending java.util.ResourceBundle). Then, JHeadstart will read the prompts, labels and display titles from this resource bundle that is generated for you.
    You can add code to your resource bundle class to read the actual strings from a database table instead of hardcoded into the message bundle. Not a trivial task though....
    Steven Davelaar,
    JHeadstart Team.

  • Prompt - label and value

    is it possible to have a prompt having label and value
    for example,
    there are 3 choices in the prompt
    the displays (choice name) are Hundred, Thousand, Million
    the choices' values are 100 ,1000 ,1000000
    then we can set a presentation variable on the value (not the name)
    thanks

    OK. There are two parts...
    STEP ONE: Build the prompt
    1) Use any CHAR column from your dimension. In the fx, enter CASE WHEN 1=0 THEN tablename.columnname ELSE 'test' END.
    2) In the "Show" window enter CASE WHEN 1=0 THEN tablename.columnname ELSE 'HUNDRED' END UNION CASE WHEN 1=0 THEN tablename.columnname ELSE 'THOUSAND' END UNION WHEN 1=0 THEN tablename.columnname ELSE 'MILLION' END
    3) Set this prompt to a PV called pvTENS or whatever you want.
    STEP TWO: Configure your report
    1) Move another instance of the the column that contains the values 100, 1000, and 1000000 to your workspace and create a BINS. You can hide this column.
    2) In the filter, when the value is 100, call it HUNDRED, when it is 1000, call it THOUSAND and when it is 1000000, call it MILLION.
    3) Now do a filter on this column. Convert the filter to SQL and set the column equal to the PV.
    There you go.
    Mark as correct and close out this thread. Thanks.
    P.S. I see that now some threads are marked answered. Good. What I didn't notice is that you didn't indicate whether anyone helped you find that answer or even provided the answer for you. Don't just mark the thread answered; if it is answered, let us know what helped you and how you solved your problem. This way others may benefit as well. And show your appreciation by awarding points to those that helped you. You can do this by clicking in the upper right of the post that helped or was "correct." It is part of the ettiquette of using this forum. Later on as you become more proficient, come back here periodically and see if you can GIVE some advice to someone whom you can help.
    Edited by: David_T on Jul 27, 2009 10:48 AM

  • Presentation Variable in prompt, then BIN

    Hello,
    I have a 4 presentation variables, related to date which will be entered by the user (prompted). Can I use the presentation variables to setup the BINS? I have tried it and it just doesn't quite like it.
    Example,
    We a field called Issue Date
    Now, I want to check and compare 2 different Incident Date ranges.
    Therefore I have 4 presentations variables which hold the start and end date for each set. So, if I put Start date -01-05-2010 end date 10-05-2010 it will look into issue dates between this 2 dates. The issue is that the start and end date are entered by the user. So when I am creating a Bin I get a couple of errors:
    1. filter Editor Template not found on page
    2. nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-00 is out of range. (HY000)
    If anyone can shet some light into how can I resolve this. I will highly appreciate it .
    Thanks.

    Hi,
    Yes you can use the presentation variable in the prompts.
    But first check if the presentation variable is getting assigned where you have called in the physical query generated. In Manage session-->view log.
    Try using a single quotes in the beginning and ending of the variable otherwise.
    And for the default selection, try building a dynamic variable in the rpd and call it in the prompt and check.
    Hope this helped/ answered.
    Regards
    MuRam

  • WEB Application / Dynamic variable input / Prompts

    I've defined a variable on characteristic Currency with the following definition:
    Processing by              : User Entry/ Default Value
    Variable represents        : Single Value
    Variable entry is          : Optional
    Ready for input            : yes
    Can be changed in query nav: yes
    Default Value              : EUR
    This variable ist used in "Currency Translation" as "Target currency" (variables entry: yes)
    The query is used in a Web-Report that performs the following command by selecting currencies from a checkbox:
    url=SAP_BW_URL_Get() +"&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=SL_CURR&VAR_VALUE_EXT_1=";
    url=url+value;
    (value is the code of the selected currency)
    Everything works pretty good, but opening the web-report I get a prompt window for the variable. How can I avoid this ?
    Changing the variable property <Ready for input : no> causes the effect that the dynamically changing of the variable doesn't work anymore. It seems that in this case always the default value of the variable is taken.
    The application should use the default value while opening the report, afterwards it should be possible to set the variable dynamically.
    Thank you very much for your ideas !!

    Hi Stefan,
    you can activate/deactivate the variable screen with parameter "Force Variable Screen" in your web template.
    bye

  • Using @variable('BOLanguage') prompts in webi documents

    Hello,
    I am using @variable('BOLanguage') in the universe to handle multilinguism.
    Unfortunately, when running my webi document, the variable prompts whereas it is a BO variable.
    On top of that, let us suppose, I enter "test" as a value for this variable, when it is evaluated, the variable is evaluated as 'fr' or 'en' but not as 'test' which proves that this variable should not prompt.
    Does anyone have any idea about how to prevent 'BOLanguage' from prompting.
    Thanks in Advanced
    Sylvie

    Oh, ok that's interesting. I went back to find the documentation but couldn't find anything specific to BOLANGUAGE, just to @Variable in the Universe designers guide.
    http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_designer_en.pdf
    It mentions entering -var parameter at the command line when starting BO to get access to other variables, and the syntax to use for @variable. It also mentions language variables like 'Preferred Viewing Locale', but nothing about 'BOLanguage'. Anyway, looks like you have answered your own question.
    Thanks

  • Handling BW variables/BO prompts

    Hi,
    What is the best-practice way of handling prompts/input variables in a BW/BO scenario when it comes to the time characteristic/dimension?
    I want to report on
    Cost Center
    Company Code
    Value Current Fiscal Period (user input)
    Value Year to date (based on the current fiscal Period)
    Value Last year same period (same period(s) as the two values mentioned above)
    I want o be able to modify the chosen time period by using input control i WebI, e.g. without doing a new search in the database, only by using the data that is already in the cache.
    I'd appreciate input on best practices for this scenario.
    Thanks!!
    Regards,
    Fredrik

    Best practice would be to design the report using classes defined in the Universe with an exported list of values.  This will limit database traffic to refreshing the LOV and the reports will bind to that.

  • Variable text in Label - Syntax

    Hi,
    I need to add a variable to my key figure labels in BEx.
    I'm quite new to this area and I cannot find the syntax for this.
    Does anyone know how to write this?
    Currently I've written it like this, without results:
    Key figure &variable&
    Br
    Max

    Hi,
    I guess I was a bit unclear in my first post.
    I have created a text variable, so far so good.
    Lets say the variable technical name is VAR_TECHNICAL.
    The problem I'm having is that when I put the following text in my key figure description field:
    Key Figure &VAR_TECHNICAL&
    results in (when running the report):
    Key Figure &VAR_TECHNICAL&
    This syntax is correct? If so I can start investigating the text variable itself.
    Br
    Max
    Edit:
    I want the value of the variable to be shown in the label.

  • Variable in Prompts instead of a Date column

    Hi,
    How do I create a presentation variable of type date to use it in the prompt? I do not want to use the date column, but use a variable to pass the start date and end date. This is because, I have two views in a report. Both the views accept different date columns as input. Can someone please guide me here to solve this issue?
    Thank You,
    AK

    Hi,
    I was able to pass values to two different views from the date prompt. The only issue I have is with the filter.
    This is what I have in the filter:
    VariableExpr = myPresentationVariableName
    default = valueof(myRepositoryVariableName)
    The report runs fine, but I see errors when I click on 'Results' tab in Answers. The errors say, "Expecting datetime value but got valueof(myRepositoryVariableName)"
    I even tried to Cast it to date which says CAST(valueof(myRepositoryVariableName) AS DATE). But it did not work.
    Am I missing anything here? The errors appear only in Results tab of Answers. When the report is run through the dashboard, it runs just fine.
    Thank You,
    AK

  • Unable to set presentation variable to prompt default.

    i am tying to apply prompt default value as some presentation variable.
    as i want to set depending on the value selected by Same prompt.please help me.
    or else help me to write sql statement with presentation variable(of other prompt) to set default.
    Edited by: user12078402 on Oct 28, 2009 5:21 PM

    Okay, I just tried something that works, but it's a workaround that may or may not work for you depending on the number of values in the column.
    Anyway, try this:
    1) Create your first prompt and save it to a presentation variable (PV), say prompt1
    2) Use the same column and create another dashboard prompt. In this one however, change the "Show" to "SQL Results."
    3) Now after the SQL in the window, add WHERE tablename.columnname IN ('@{prompt1}', 'value1','value2', etc...)
    Here is the drawback, you have to list the values explicitly (unless someone knows a better way), but this will default the second prompt to the first prompt's selected value while allowing the user the choices of the rest of the column.
    Not the prettiest solution, but it does work...

  • Creating Variable for prompt

    Hi,
    I have a requirement where i have to create a variable based on a specific requirement.
    A prompt is placed on the year field. Now two variables should be created
    1.The Sales Revenue of the year that is selected by the user, and
    2.The Sales Revenue of the previous year for the year that is selected by the user.
    Please Help
    Thanks and Regards,
    Raja.N

    Hi  Rohit,
    I practiced the same formulas on eFashion. I used [year], [sales revenue] objects and prompt with equal to condition
    Cyear =UserResponse("Enter Year:")
    Pyear =FormatNumber(ToNumber(UserResponse("Enter Year:"))-1 ; "####")
    Csales =[Sales revenue] Where ([Year]=[cyear])
    Psales =[Sales revenue] Where ([Year]=[pyear])
    I created the above 4 variables(all are measures), but i couldn't get the data for 'Psales'. You said, you practiced on eFashion and you got the result. Please let me know if i do any mistakes.
    Looking forward to your reply.................
    Thanks,
    Shahin.

  • @Variable vs @Prompt

    Hi,
    My deski has a free hand sql and uses @Variable.The issue is that when i run the report from DESKI it prompts the user to type the date but when i run the same report from infoview it prompts the user to select the date from a calender.How can i make this calender option disabled? I think it is ease to do this with @Prompt as it has the option (Free and Constraint) but how to overcome this issue in @Variable?

    Just ask for the date in a character string way, then convert it to date.
    So in oracle syntax
    use
    datecolumn = to_date(@variable('type date in the format dd-mm-yyyy'),'dd-mm-yyyy')
    i.s.o.
    datecolumn = @variable('give date')
    the latter will trigger the calendar dialogue...
    Hope this helps

Maybe you are looking for