How To retain Session Value in OBIEE

I have a requirement to pass session variable from one page to next page in the dashboard.
Requirement :
In Presentation Part:
Prompt : Column1: Year
Column2: Quarter
I have to pass the Value selected in the dashboard prompt to the repository. To achieve this, I have stored the Year and Quarter Column value in 2 Request variables from the prompt.
Request Variable1 : VarYear stores Year Value selected
Request Variable2 : VarQuarter stores Quarter Value selected
In Repository Part:
1. I have created 02 session variables in repository with the same name as : VarYear and VarQuarter
2. Under the Intitialization Block of Both Variables I have written a dummy Query as
'SELECT PER_NAME_ENT_YEAR FROM W_DAY_D WHERE PER_NAME_ENT_QTR IS NOT
NULL'
3. Checked the Box to 'Enable any user to set the value' for both the session variables.
4. Used the session variable to pass as a filter under the content tab of the LTS of Revenue Measure as follows:
'"Oracle Data Warehouse".Catalog.dbo.Dim_W_DAY_D.PER_NAME_ENT_YEAR = VALUEOF(NQ_SESSION."VarYear") AND "Oracle Data Warehouse".Catalog.dbo.Dim_W_DAY_D.PER_NAME_ENT_QTR = VALUEOF(NQ_SESSION."VarQuarter")'
Resolution : The session variables from the prompt is passing properly to the RPD and returning the result as expected for the current page(Both Prompt and the Report are in same page where I used the measure Revenue which is getting filtered in the LTS on the basis of Quarter & Year under Content Tab).
Reuirement2 With Issue :
I have to navigate from one page to another on click of Revenue measure value. The target page also contain the same Revenue measure as in First page. But On navigating from one page to another page the session value is getting lost and passing the by default value coming from the Session Initialization block insted of the value selected in the prompt.
As per my understanding the session value should not be replaced untill a user log out from the application. But in my case for First page where I have both Promt and the Revenue measure the Prompt value is passing properly but When I am moving to second page where I have only the Revenue measure the session value which is already set early is replaced by Session IB query result.
Please suggest me if there is any resolution for my issue.
Thanks a Lot in advance.
:)

I've had this issue myself and here is what i found. The only way I could get it to work was to have the Prompts that populate the Session Variables on the pages. In other words if I had the prompt on one page and then used guided navigation to go to another dashboard page I needed to have the same prompts located on that page for the session values to get passed into. Since in my case I didn't want the prompts to display or the User to know I had to add Dashboard prompts in order to captures the passed Session Variable values, I placed the dashboard prompts for my Session Variables in a separate section and then hid that section from the User. I hid the section by selecting Properties - Custom CSS Style Options (HTML Only) and then clicked on the check box for Use Custom CSS Style. In the text box enter display:none which will cause the section to be hidden from the User. The prompts will then exist on the dashboard page to receive the session values and the User will never know it is there.
Hopefully this helps.
Eric
http://www.BIConsultingGroup.com

Similar Messages

  • How to get Session value in Custom OAF page

    Hi,
    Already existing Custom oaf page is there in that they seted  session value using the following API
    String s = (String)oapagecontext.getSessionValueDirect("page");
    here s is getting null value how can i get the session value is there any another method to get the session value in custom page
    please  anybody help me ASAP.
    Thanks,
    Krishna Mannala

    Hi,
    Is that value set anytime before you are trying to get that?
    Please provide relevant details and code here.
    Regards,
    Sandeep M.

  • How to retain variable values across a BPEL Process?

    Hi All,
    I've created a BPEL process using number of variables. Out of these I've a common variable with name processorBO that is required for calling every service. But after calling a service, I lose values inside processorBO and it gets filled with the new values.
    Can anyone tell me how to retain the processorBO values across complete process so that, I can use the required values at appropriate places ?
    Thanks in Advance
    Regards

    well...you could always use the transformations to do the assign, or if you want to use just the assign activity to set the response values from the service to the 'global variable' you could use something like
      <copy>
          <from variable="inputVariable" part="payload"
                query="/client:testProcessProcessRequest"/>
          <to variable="globalVariable" part="payload"
              query="/client:testList[1]"/>
      </copy>the [1] will assign your values to the array-part of the variable.
    This does the same as a for-each in your xsl transformation.

  • How to display Session value of an item  using Javascript?

    Hello All,
    I have a file browse item and I browse some file and click on upload, i run this javascript :
    function passBack()
    javascript:doSubmit('UPLOAD');
    alert('hi');
    var var_flag = $x('P91_FILE');
    alert(var_flag.value);
    opener.document.forms["wwv_flow"].f05[3].value = var_flag.value;
    close();
    </script>
    It dispalys 'hi ' as per the first alert.
    For the second alert it shows the file path value . ( C:\test\test1.sql).
    I need the file session value to be displayed here
    Like the following :
    F477093380/test1.sql
    and then I need to pass that value to parent page. and close the child page.
    Any idea?
    Thanks in advance.
    Regards,
    Archana

    Archana,
    I'm not sure about javascript, but u can use a sql query on the "APEX_APPLICATION_FILES" view to obtain that.
    Something like:
    SELECT id,NAME
      FROM APEX_APPLICATION_FILES;

  • How to Retain Session

    Hi Techies,
    My requirement is, i opened new browser window and access some OA page. it asked me login/pwd. i entered and browse pages. After that i closed browser window without logging out.
    Now if i open browser window and type direct page url, how i can avoid login page?
    Please help.

    I think if the page is series of the pageFlow that has Application module retained properly, it will take you to where yu left when yu login again.
    But to skip login the second time is not entertained. When pages expire on timeouts and require logins, closing the browser window will kill the session
    Thanks

  • How to retain search values after submit in a result table

    Hi, i have search page with a autoCustomizationCriteria query region.
    In a simple search panel there are three messageChoise search items.
    When the search is performed a result table is displayed together with a cancel and a submit button.
    After submitting the changes in the result table a dialogpage is displayed and then returning to the search page.
    The mesageChoise values in the search region are now all reset to default.
    How can i retain the search values so that i can requery the page showing the updated values of the resulttable?
    Code in PFR:
    if (pageContext.getParameter("Submit") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("apply");
    // get message
    OAException confirmMessage = new OAException("XX","XX_SOME_MSG_CONFIRM");
    OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION,
    confirmMessage, null, APPLICATION_JSP +
    "?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG", null);
    // Note that we release the root "UI" application module
    // so we can correctly handle any subsequent "Back" button
    // navigation and attempts to resubmit the PO transaction.
    pageContext.releaseRootApplicationModule();
    pageContext.redirectToDialogPage(dialogPage);
    Regards SG

    Thanks but i've already tried to remove the
    pageContext.releaseRootApplicationModule();
    but it does not help.
    Actually after pressing the start button in the query region and the data is shown in the result table, the following can be seen in the URL of the browser:
    192.168.1.151:8988/OA_HTML/OA.jsp?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG&searchType=search&fwkSTSearchrPG__QueryRN=search&_ti=1151125721&retainAM=N&addBreadCrumb=N&oapc=10
    So even before i submit the changes in the result table AM seems to be lost, but I'm not sure where the retainAM=N is initiated and where to override it. Any help would be appreciated.
    Regards SG

  • JSP and JavaScript! How to put session values into html form?

    I have a master form which goes to detail form to input data and back to master to Confirm submit operation. I want to put all the form data into request or session variable so it can be retrieved in both the forms. In master form i want to use it in the following way:
    MasterForm-onLoad(){
    check for form data Object in the session/request
    if the data exists
    populate the form fields (by getter methods of form data object)
    Show the input from detail form
    otherwise
    show empty form
    Now the problem is that it throws null pointer exception if the form data does not exist and i try to access it within an IF statement.
    I beleive this is coz the JSP code will be executed on the server before the html page is loaded. Can any one please tell me how to solve this problem.
    Thanks and Best Regards
    Gul

    thats exactly what i m doing but the session variable is not a simple variable or objct, its a serializable object with getters and setters which i will call to retrieve its values. its like this
    FormBean formData=(FormBean) session.getAttribute("formData");
    now in javaScript i will have to check if the formData is null and than perform the getters or setters.
    <script>
    function getValues(){
    if("<%formData%>"!="null"){
    form1.SID.value="<%=formData.getIDVal()%>"
    </script>
    thats what i was trying to do but the problem is all jsp code will be executed before the page is loaded so it will try to execute inside of the if statement even when the object is null so NullPointerException.
    The only way i have got it working so far is to retrieve all the values in the JSP scriptlet, and than use the individual variables as u also mentioned.... SO Far i havnt been successful in calling getter methods in JavaScript. you think it can be done?
    Thanks for the reply
    GUL

  • How to retain default value of metadata during the Revision form?

    Hi,
    I have created a custom field which shows Document Status drop down having values like Draft, Received, Reviewed, Approved. Currently the selected Document status gets saved (e.g. Approved get saved when selected) and the same value (approved) is displayed as default during the next checkout and checkin.
    The user requirement is, during the next checkout-checkin (creating a new revision) everytime the document status should show as 'Draft' value by default. Please suggest how this can be acheived?
    Thanks,
    Sarang

    Hi,
    I have already set default value fo Document Status field as 'Draft'. But when I check in a new content by selecting Document Status as 'approved' or 'reviewed' value, then for the next check out check in I am getting the same value as default. As you have mentioned, I am trying to set the default value using global rule but was not succeed (might be rule is created wrongly). Please let me know if you have created such global rule or any example available with you.
    Thanks,
    Sarang

  • How to retain selected value in apex_item.select_list?

    Hi,
    I've a report region query-
    select distinct col1, col2,
    APEX_ITEM.HIDDEN(2,col3)||
    APEX_ITEM.SELECT_LIST(1,'No_Action','Valid;Y,Invalid;N') Action
    from <tab1>
    When 'Y' (valid) selected from the select list and SUBMIT is clicked - a validation and then page processing pl/sql process will run for the record, branching to the same page.
    If validation fails custom error message comes on screen, but value of column "Action" is reset to default 'No_Action'.
    Can anyone please tell me how can I show the last selected value in column "Action"?
    Please reply asap. Regards.

    To be able to show the last selected value you need to make the value persistent, that is update it in some column in the table.
    So the next time the report is run (refreshed) it fetches the value from the table/column . Then change your query to something like
    select distinct col1, col2,
    APEX_ITEM.HIDDEN(2,col3)||
    APEX_ITEM.SELECT_LIST(1,NVL(COL_YN,'N'),'Valid;Y,Invalid;N') Action
    from <tab1>COL_YN is the column where you stored the last selection. Unless you store it in some table/column you cannot get it back into the report when it is refreshed.
    The other way of course is to use APEX_COLLECTIONS , but that might be more complex.
    However, you need to think whether you really need the APEX_ITEMs API for this? If you just edit the Report Attributed and Edit the column definitions you might be able to achieve the same thing without having to use APEX_ITEM.
    Regards,

  • How to restric Prompts value in OBIEE 10g

    Hi Gurus,
    We have a prompts which consists of Dimension and fact. In prompts i have Fiscal year prompt from the Time dimension. When i put as a drop down it is showing all the values which are present in Time Dimension. My requirement is to have only the Fiscal year information which has the data in the fact table.
    For example: If my fact table if i have data from 2010 - till 2012 it should show me the values in that prompt feild 2010, 2011 and 2012. But it showing data from 2008 till 2020, which our Time dimension having the data.
    I tryed to use the SQL results but it does not take the greater or less then in the SQL.
    Please help me its bit urgent.
    Thanks in advance.
    Ali

    Hi Ali,
    Can you write a Sql using the following thing:
    Select Year_num from TimeDimension where Year_num In (2010,2011,2012)
    Try above else... Select timedimension.year from time dimension where timedim.year in ( facttable.year_num)
    step1: Select year from time dimension.
    step2: column: year from time dimen , operator : is equal/is in , control: drop down, show: change her to sql results (Add where year in
    (2010,2011,2012 ) , default: report defaults.
    Above displayes 2010,2011,2012 as year options.
    --- preview it should work
    Edited by: 831909 on Feb 6, 2012 9:18 AM

  • Retain the values

    hi all,
    I am looping through a ResultSet to set properties of an Class(cl). Then I add each class to the vector(vt) by casting the cl into Object. But when I try to retrieve elements from the vector. I only get one element as though all the elements in the vector are occupied by only one element.
    Tell me how to retain the values(Objects) in the vector?
    Here I set the properties and load the vector
    aud is an Object
    vt_aud is the vector
    while(rs.next())
    aud.setFirstName(rs.getString(1));
    aud.setLastName(rs.getString(2));
    aud.setEmail(rs.getString(3));
    vt_aud.add((Object)aud);
    To retrive
    for(int i=0;i{
    aud = (audience)vt_aud.elementAt(i);
    firstname = aud.getFirstName();
    lastname = aud.getLastName();
    email = aud.getEmail();
    System.out.prinln(firstname);
    The problem is it prints only the last record of the resultSet.
    Thanks for help.

    Hi,
    Java only stores references to objects in collections such as Vector. If you want to store several different objects in the Vector, you need to make sure each one is a separate object, not just the same object re-used each time.
    Try this code:
    Vector vt_aud = new Vector();
    while(rs.next()){ 
    audience aud = new audience();
    aud.setFirstName(rs.getString(1));
    aud.setLastName(rs.getString(2));
    aud.setEmail(rs.getString(3));
    vt_aud.add(aud);}
    or, if you have control over the "audience" class, you can add a constructor and simplify the loop:
    Try this:
    Vector vt_aud = new Vector();
    while(rs.next()){
    vt_aud.add(new audience(rs.getString(1),rs.getString (2),rs.getString(3)));}
    Hope this might help you.
    Anil.
    Developer Technical Support,
    Sun Microsystems, India.
    http://www.sun.com/developers/support

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • How to use Table valued MSSQL  function in OBIEE

    Hi all,
    Can some one help me to understand how to use table valued function in OBIEE? I want to use a table valued function (MSSQL function, with some input parameter), in the physical layer to pull the data?
    I know for MSSQL Stored Procedure we can write as
    EXEC SP_NAME @Parameter = 'VLUEOF(NQ_SESSION.Variablename)'
    but now I have a table valued function in the query window I can get the data as
    select * from myfunction(parametervalue)
    In physical layer of OBIEE I have tried as
    select * from myfunction('VLUEOF(NQ_SESSION.Variablename)'), but I'm getting error as the NQ_SESSION variable doesn't have a value , but actually I have initialized the variable but still Im getting error.
    Can some one help me to solve this.
    Thanks,
    Mithun

    Follow this link and try yourself. let me know for issues
    Substring instr issue in obiee
    Appreciate if you mark
    Edited by: Srini VEERAVALLI on Feb 20, 2013 8:13 AM

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • How to restore session item values

    Hi,
    We have a request form which has more than 50 fields and some hidden items which are calculated depending on other items. We have to implement SAVE request feature so that the user can save their partially filled request. We are storing these fields data in more than two tables and not storing some hidden item values. Our idea is to store that form page current session values and restore them when ever user wants to complete request. Is there any apex views which will have all these data. Please suggest how can we do this.
    Thanks in advance.
    Regards
    Ram

    Hello Ram,
    >> Yes we have seperate SAVE button
    That’s good, as it allows you to use these buttons to condition the PL/SQL processes, differentiates between the temporary and permanent actions.
    >> Our idea is to have temp table to store all the items and their values in the page when the user clicks on the SAVE button
    You are using ‘table’, in a single form, so I assume you refer to a single (temp) table. With careful planning of this temp table, it might be possible.
    To use a single temp table, it must contains details of the item name, value and the application page it defined on (although this information can be derived from the item name, if you are using APEX item name convention). The page items should be defined with a Source Type of ‘Database Columns’, and in this case, you can use the APEX_APPLICATION_PAGE_DB_ITEMS view to track them. Using this view, you can retrieve the relevant items for the current page, and then, dynamically build a PL/SQL insert/update statement to save the items into the temp table; or a PL/SQL select statement to fetch relevant items from the temp table and populate the page items.
    These are not trivial processes to build, and as you are going to use a single (generic) temp table, you will have to code all the temp/permanent DML statement yourself, but it seems doable.
    You might also want to check the WWV_FLOW_DATA table, which holds the session state data, and see how it was defined (for example using CLOB as the item value datatype, to allow you to store different types of APEX item values in a single column).
    Hope this helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

Maybe you are looking for

  • Webpart to show a subfolder of a document library

    The Microsoft Office 365 community forum suggested I share this question in MSDN as they were unable to help me: For the better part of a day I've been racking my head trying to figure out how to do this in SharePoint Online.  There is lots of forums

  • Seeing jagged lines on external monitor in 720P project???

    I just a purchased a Panasonic BTLH1700 to use as a braodcast monitor with Final Cut Pro 6 and even though the monitor and my FCP project are 720p mode, I'm still seeing jagged lines. I thought that was usually a 480i issue. When you're working in a

  • How do you embed ePub3 in a web page using 'embed code'?

    I have an epub3 that i desperately need to embed onto my web page. I am using Weebly who allow for embed code on the web page, and also have a code editor where you can upload files. Is it easy enough to somehow upload the mp3's that are in my epub,

  • Conversion from Lightweight to Autonomous

    Hey guys, I'm trying to get an Access Point 1140 Series to go back to Autonomous, but when I type archive download-sw /overwrite /reload tftp://1.2.3.4/autonomous-image.tar It says it doesn't recognize that command. It's connected to a WLC 2504 with

  • Mac is sluggish when using FCE 2!

    When I drop a file in the viewer it plays for a few seconds and freezes. I can play the file in the canvas but it is sometimes sluggish. audio starts to drift away from the video. This is a brand new machine to me... Are there settings to dial in? An