Request variable in Answers prompt

I am on OBIEE 11.1.1.5 and have created a session variable which is set to 'Enable any user to set the value'. Then default for this varaible is set to CURRENT_DATE. I have created a logical column to calculate Length of Service based on this variable like
cast(Floor( (TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test")))/12) as char)||' year(s) '||cast(Mod((TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test"))),12) as char)||' month(s)'
Now I create a answers request and put this logical column on it. What should be the prompt so that the Length of Service gets calculated based on the iput provided by the user?

I am following http://everythingoracle.com/obieerv.htm to move forward.
I created a variable prompt abc with date as data type and then in Advanced tab under Advanced SQL Cluses in Prefix I typed: SET VARIABLE Test='{abc}';
This just puts '{abc}' in the formula. And if I try SET VARIABLE Test={abc}; then it throws syntax error i Advanced tab.
What am I doing wrong?
Edited by: user12301184 on Aug 26, 2011 6:38 AM

Similar Messages

  • "Request variable" in dashboard prompt

    Can I really change the value of a session variable using Set variable "Request variable" option in a dashboard Prompt. If "yes", can someone explain with an example. If "no" is there any other way to change the value of a session variable in specific pages while navigating.

    In the Report, Create a filter fro VERTICAL. In the Filter Creation Click On Add - Variable - Presentation, Now in the variable Expr give your variable name, In the default value give any value for this VERTICAL.
    Now put your prompt and report in dashboard, test it.

  • UJD_TEST_PACKAGE - How to use variables in Answer Prompt

    Hello BPC gurus,
    I'm using report UJD_TEST_PACKAGE in order to schedule BPC packages inside BW process chains, as proposed by Pravin Datar in his bolg (/people/pravin.datar/blog/2009/08/28/automate-execution-of-any-data-manager-package).
    This solution does work well but still there is a limit I'm not able to overcome; I need to export data from BPC but with a filter on TIME dimension based on an OLAP variable: eg. let's assume that reference month is May 2011 (and this month is stored in a DB table), then I need to filter data from May 2011 to April 2012 only. If reference month is June 2011, dynamic filter should be from June 2011 to May 2012, and so on...
    Does anybody know a way or a workaround (other that changing report code) in order to perform what I need??
    Our BPC version is: BPC 7.5 SP6.
    Our BW version is: BW 7.01 SP6.
    Thanks very much for your help,
    Andrea

    Hi Andrea,
    I don't think you have to support many version of ABAP code  - one for each variable.
    If your OLAP variable has type Customer Exit you can call SAP function RRS_VAR_VALUES_EXIT_FILL which has variable value as a parameter. You can save that value as a variant of ABAP process type. This way you'll have just one program to support, but as many variants as many variables you need.
    Hope this helps,
    Gersh

  • How to print a request variable in the name of a section?

    Hello all,
    I have a session variable created in the RPD called VarWorstStore
    and I have a prompt which sets a request variable with the same name.
    Now when I put a report which is filtered on this variable then I can see that the variable is changing when I press go in the dashboard prompt.
    However, I call this variable in a section as well (go to page options - edit dashboard and click on rename of a section)
    Now I type: @{biServer.variables['NQ_SESSION.VarWorstStore']} and check the box Display section heading.
    Now when I save the dashboard I can see the value of the session variable. However, when I change the session variable with the prompt, thenb I can see that the report is changing, but the title isn't.
    Can anyone help me on this? My reference on this was: http://4.bp.blogspot.com/_f689sAiiG-E/SKv8Fxu7wNI/AAAAAAAAAPk/pppwQ1DdEhg/s1600-h/obi-ee-variables-overview.jpg
    I think it is a bug, but perhaps someone knows
    OBIEE version:
    Build: 10.1.3.4.1.090414.1900
    Release Version: Oracle Business Intelligence 10.1.3.4.1
    Package: 090414.1900

    Thanks for all your responds!!
    However, I was thinking in first instance on a narrative view myself indeed, however this is not good enough for me, because I really have an almost pixel perfect dashboard.
    But the thing with the prompt works!!! What I have done is making an extra prompt with the default value set to the session variable and then I set a presentation variable in the same prompt, and after that I am filtering the reports on the presentation variable in stead of the session variable.
    But I cannot find anywhere where to hide the prompt, can you tell me this?
    The only way I can hide things is to set permissions I gues, but then I also guess is that the prompt will do not do its tasks when the user has no permissions to this prompt.
    Hope you can help me out on this last part!!

  • Specifying Request Variable's Date Format in LTS Content Filter

    All,
    We are trying to use a Dashboard prompt to set a request variable (session) to filter a logical table source. When I use either a DATE or TIMESTAMP format and default it properly in the Initialization Block the filter works properly. As soon as I change the value by using the prompt, it tries to compare the base column to the value of the variable in the following manner:
    SOURCE_COLUMN = REQUEST_VARIABLE
    DATE: HIER_DATE = '2010-02-03'
    TIMESTAMP: HIER_DATE = '2010-02-03 12:15:45'
    As soon as I try to insert the conversion functions TIMESTAMP or DATE, which work fine if I do the filter in the Answers report itself, it won't compile correctly, ex:
    SOURCE_COLUMN = DATE REQUEST_VARIABLE
    SOURCE_COLUMN = TIMESTAMP REQUEST_VARIABLE
    Anyone know of a workaround or if I'm doing something wrong here? Any help will be greatly appreciated.
    Thanks in Advance,
    Josh

    eejimkos,
    We're using a request variable, not a presentation to be exact; we have tried both drop down and calendar - neither work. I'm not quite sure what you're asking about the target data. It is a different column in the same table; we're trying to filter a hierarchy down using the effective_to and effective_from dates with < and > respectively. Finally, our nls language default date format is set as 'DD-MON-YY", which is the way we want it, but for some reason when using the variable it's coming through as 'YYYY-MM-DD' if the base column is of type DATE and 'YYYY-MM-DD HH:MI:SS' if it's TIMESTAMP.
    Thanks,
    Josh

  • Request variable not overriding session variable in report filter

    I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
    The session variable has "enable any user to set the value".
    I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
    I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
    However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
    I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
    What am I doing wrong?

    user4006070 wrote:
    I have a dashboard edit prompt that saves value into a request variable with same name as session variable.
    The session variable has "enable any user to set the value".
    I have a filter in the report that has been converted to sql where the transaction date is greater than the value entered in the prompt.
    I see the "SET Variable" clause at the top of the sql being sent to the server in the logs.
    However, when I am in "View Logs", I see that the sql that is being sent to the database is sending the original value of the session variable instead of the new value in the request variable.
    I have tried using VALUEOF(NQ_SESSION.variablename), VALUEOF(variablename), VALUEOF("Dynamic Initialization Block Name"."variablename"), @{biServer.variables['NQ_SESSION.variablename']} with no difference.
    What am I doing wrong?When you created the prompt, did you make sure you set the variable type to Request variable?

  • Request Variable in Report Subtitle??

    Hi there,
    I'm using Request variable in my report. I want to use the same in Report subtitle.
    I was using @{biServer.variables['NQ_SESSION.myvariable']} in report subtitle.
    Its showing the default value first time. When I change the value in dashboard prompt (editbox) and click go, value in subtitle is not changing.
    Appreciate your help
    Thanks

    Okay, you can't use presentation variables in the rpd so if you are using it in the rpd to override a session variable, then you need to set it to a Request Variable.
    Put the request variable in the Title window of the Title View not the Subtitle window.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf page 98.
    Oh, and because we are back to Request variable,use the @biServer.variables['NQ_SESSION.variable']} syntax.
    To test functionality, use this session variable in the Title field of the Title View:
    @biServer.variables['NQ_SESSION.USER']}
    This will return the logon ID of the user.
    Edited by: David_T on Sep 10, 2010 7:51 AM

  • Request Variables

    Hello,
    Can somebody please tell me what a request variable is? Is this the same as a session variable?
    You can select request variable when creating a prompt.
    Does anyone know what this object does?
    Thanks!

    Okay, it is still showing helpful answers and correct answer points available. You need to award points as well. The "Answered" part is not connected to the points because it is possible to "solve" your own problem. Then you can mark the post "Answered" so others can see what that the thread is completed (and can find the solution if the poster displays it).
    But, as in this case, if someone else provides the solution, then you can award the 5 points for the helpful answer and 10 points for the correct one.
    HTH,

  • How to get Request Variables in Variables-View

    while editing a jsp-page i always can see the "Session Variables" in variables-view (left down corner of eclipse above tag libraries). also while working with forms i can see all available form variables for the as "Page Variables".
    but what i really would need is to see the available "Request Variables" which are set by the action calling the page.
    what do i have to do, to make this running?
    tnx in advance
    Rel
    //deny everything!

    Here comes the action config...
         <action-mappings>
              <action path="/area_rosa_news" type="mvc.actions.site.news.area_rosa_newsAction" parameter="area_rosa_news">
                   <forward name="area_rosa_news" path="area_rosa_news" contextRelative="false"></forward>
              </action>
         </action-mappings>

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • Create an Answers Prompt not based on an Answers Column

    Hello,
    I want to create an answers prompt that is not based on a column in my request and i want to use that prompt to do calculations in my request.
    For example, i want to create an 'As of date' parameter where the user would fill a specific date (for example 1-Mar-09) and based on that date the report would show the total earned revenue up to that date (total revenue earned till March 2009).
    Does anyone know or can point me to a link on how to do that?
    Thanks,
    Patrick

    Sorry my last message was not fully submitted, here it is:
    You are right in this scenario, but as i've mentionned i have other cases where i dont have that column in the repository. For example, suppose i have a report where i want the user to enter a number and multiply that number by an amount (let's say this number is the conversion rate to Euro), in this case this number is not based on any column in my report and i need it to do a calculation and also i want the user to enter this value since its not fixed so the question is how is this done in OBIEE? (if doable)

  • Using Javascript function to change the value of a request variable

    Have a javascript function that activates onchange within a form variable. Would like the javascript function to change the value of a request variable.
    The javascript function is able to obtain the current value of the request variable ( which is 0 ) however I am unsuccessful in changing the value to 1.
    I have been trying to use the following:
         var vchange = 'request.changes_made = 1 ;' ;
         eval(vchange);
    Any ideas?

    If the user makes a change to the content of the form, and then attempts to leave the form, a javascript alert pops up giving the user the option of cancelling the submit, returning to the form and saving it.
    If there have been no changes, then the user is free to migrate to another page.
    This process is to protect users from losing valuable information but not to annoy them with "R U Sure" messages.
    Knowing the status of the form content is important to the functionality of the application.
    G

  • Behavior of customer exit variables (used as prompt) in a workbook

    Hi All,
    We are on NW2004s. I am using a customer exit variable in the prompt for my query then saved the query as a workbook.
    1. When I run the query the customer exit routine/program is called and the selection screen variable is populated with the correct value.
    Ex. Calendar year variable is a prompt variable defined as customer exit variable that gets the current year.
    when you run the query the prompt for calendar year shows "2007" as default value. this is correct.
    2. when I run the workbook using this same query, it looks like it is not executing the customer exit program. The value in the calendar year prompt is whatever the last value used when the workbook was last ran.
    I also placed a breakpoint in the customer exit program (EXIT_SAPLRRS0_001) to check if it is being called and it looks like it isn't.
    Is there a configuration/property that I should enable/check to make sure that customer exit variables used as prompts works in workbooks? Is this a bug? Anybody else have issues with using customer exit variables as prompts in their workbooks?
    Thanks in advance,
    Malou

    Hello Marilou,
    See the abswer I got from the 1st response on my question
    Save and reuse variable option in 7.0
    It may be a good help.
    Variables seem to be an understated item in the documents.
    Kind regards
    Message was edited by:
            BI developer

  • How to display Date Calendar in Oracle BI Answers Prompts (parameter)

    I'm still new to OBIEE.
    How to display Date Calendar in Oracle BI Answers Prompts (parameter)?
    Thanks.

    Hi,
    While creating Dash Board prompt choose the control to 'Calendar'.
    I think it is not possible to provide 'Calendar' control using Prompts tab while creating request.
    It is possible to write Java Script for a Column of data type 'char'. So, cast the date data type to char.
    Go to: Column Properties --> Data Format
    Choose override default data format to view the available options in the drop down list.
    I would be very happy if anybody acknowledge me that I am wrong.
    -Vency

  • Supressing Substituion Variables in Runtime Prompt

    Hi All,
    How to Hide Substituion Variables in Runtime Prompt? There is a risk of selecting this substituion variables by users. Please let me know if any workaround avialable.
    We are using Hyperion System 9.3.1
    Thanks in Advance

    I want to hide those substituion varibles in Runtime Prompt, I have period dimension as RTP and some Substituion variables are there which are belongs to Period dimesnion, if user selecet unkonowingly those members results give unexpected values. So, I want to hide substituion Variables in RTP.
    Thanks in Advance,

Maybe you are looking for

  • Live Upgrade 2.0 (from Sol8 K23 to Sol9 K05

    Installed LU 2.0 from solaris 9 CDs Created a new BE (= copy of my Sol8 K23) Start upgrade on my inactiive BE to Sol9 insert Solaris 9 CD 1of2 luupgrade -u -n <INACT_BE> -s /cdrom/sol_9_403_sparc/s0 --> runs fine eject cdrom insert Solaris 9 CD 2of2

  • Firefox is hanging very frequently, on all pages(infact, hung while typing this)-version is 6.02.

    Have been having frequent hangups the last couple of weeks, on all pages. Started on Facebook with the app Bubble something(forgot the exact name since I have since deleted it). I ran a full system scan(Norton 360 v 5)clean, deleted Firefox(6.02)from

  • Pressing the ENTER key in first tab -- a button in another tab is pressed?

    Hi guys,  I am facing a problem. I have a tab with 4 different tabs. When I am in the first tab, and trying to change a control's value by pressing the Enter key, it suddently switches to the seconds tab and presses a button there.  Any idea how that

  • Deleteing Photoshop Elements 4.01 on a Mac

    Any idea's on how I should go about deleteing Photoshop Elements 4.01 on a Mac that now has Photoshop Elements 6.00 installed on it without screwing up the Photoshop Elements 6.0 installation?

  • Can't open any program (cc o cs6)

    Hi, a few days ago I tried to open my encore cs6 and received a message asking for a serial number. I thought it was a internet error or something minor. But I'm still getting the same message and now when I try to open any (premiere, photoshop, etc)