Guest & Session variable

Hello

In my SPR file, I created a variable current_year of session, and it works without any problems,
I created a simple reprot that has a column time.year
and I added a filter on the year: session variable: current_year

I tested the report and everything is ok

After that, I created a dashboard quickly with a time.year column and added the report to a dashboard.

Now when a selection of value for the year from the prompt overide the session variable. For example if I choose the year: 2009
then the display of the 2009 report

is not the expected behavior, I expect BIEE to display the year according to the session variable.


THX

Two things:
(1) use a variable repository instead of a session variable. Only use session variables when they are dependent on the user when you need a variable that has the same value for all users, you must use a variable repository.
(2) protect the filter that uses the variable. http://obiee101.blogspot.com/2008/07/OBIEE-protect-filter.html

Tags: Business Intelligence

Similar Questions

  • Helps the guest of session variable and dashboard

    Hi, I ran into soemthing that I can't understand.

    In the administration tool, I defined a CURR_MONTH session variable and set the query to find month max in the date dimension. It's all works fine - if I test the variable in OBIEE administration tool, it currently returns "January 2010".»

    In addition, in the responses, I can create a query that moves back calendar information and then put a filter on it so the specific columns is equal to the session variable. It works perfectly - I get the 3 lines of return data that correspond to the 3 days of data we loaded for January 2010.


    However, now that I'm trying to do is set a dashboard with the dimension command prompt date in it. I want the default to months / year equal to the value of CURR_MONTH. However, when I do this, instead of getting the correct value, for some reason some, it becomes the default value I put in place for this variable.

    Any ideas on what I am doing wrong or if it is a bug?

    Thanks in advance,
    Scott

    p.s. using OBIEE 10.1.3.4, with no applied patches. I'll upload pictures when I get home... is not a way to their work stations.

    Hi Scott,.

    I just tested and it works fine for me.

    (1) in your DB guest pass by default to
    (2) select the Server Variable
    (3) NQ_SESSION. CURR_MONTH
    (4) save and test

    Well, that should work for you. Here is a link to a jpg file that you should probably keep for future reference. She'll show you the proper syntax to use in different situations.

    http://shivabizint.files.WordPress.com/2008/10/OBIEE-variables-overview.jpg

    -Joe

  • Session Variable Multiple of the default initializer

    Hello

    I created a session variable in the RPD to default to a guest of dashboard of Department, for a set of users, to their competent services that they are responsible.

    My question is; If the session variable returns no row, is there a way to define initialization by default to select all values in the prompt the Department dashboard? I've been successful by setting default initialization as a value unique Department.

    Thank you

    WITH tmp AS (
    select department
    from employee_department
    where sup_full_id =UPPER('User1')
    )
    select department from tmp
    union
    select department from employee_department
    where 0 = (select count(*) from tmp)
    

    Something like that is supposed to work: If you have lines to "User1", it returns a DIFFERENT one on this list, if nothing is there returns you all values (with a separate as well thanks to the UNION).

  • Urgent about the session variable

    Hello world

    I have a guest fromdate (calendar ctrl) and to this day (calendar control) and an orderID (here is multiple selection). Now my requirement is I should choose an order ID multiple selection and when I hit between the date should be invited for the fromdate and to this day, and they must spend in the report.
    Please help me how can I go to the 'view' Fordate session variables and 'day' based on orderid select multiple selection.

    Thank you very much for your help.

    Thank you
    Chakr

    Question - Ids come straight from shape is talbe. If so

    Work around... 2 buttons to go means 2 guests

    1prompt - Fromdate and todate with button variables-Go presentation

    2 guest - use the sql function to get values from fromdate and todate presentation values of variables in the where clause. -Go button

    Means, first you select the dates and and click on go. These variables intialises you will see IDs in the 2nd for the selected dates prompt. You can select from there and click on the 2nd GO button.

  • Session variable: How do you know where all that is used in the repository?

    Hi all

    We have a requirement where we need to convert a few session variables in variables to repository. For this we need to know where everything is this used in the repository and webcat session variable (including all logical columns use, which all guests use etc.). We tried the utility application, but that did not help. Is there another way to know that? You will really appreciate the pointers on your side.


    Thanks in anticipation,
    Karan

    Hello

    To search for variables used in,

    RPD: Open the RPD-> go to the Tools Menu-> select 'Utilities'-> 'Documentation repository '. This will generate a CSV with associations

    WebCAT: Open the using webcat catalogue Manager-> Tools Menu-> create report - select the desired columns (column Xml include)-> open the rpeort in excel find-> 'Variable' of what you can find the different variables used in the catalogue.

    Rgds,
    DpKa

  • Using the dashboard invites you to initialize session variables

    Hello world

    I want to know if it is possible to have a command prompt of dashboard which is only used to change session variables. This prompt would stay in a tab completely unrelated.


    Is this possible?

    When the user changes the variables in the prompt of

    I guess its value not the variables... .am I get?

    the variables seem to work only in the tab corresponding to the command prompt, even if the guest is configured to be valid in the dashboard.

    (1) scope of application/presentation variables is in the table edge or the page

    (2) as I illustrated it in a demo of dashboard have two pages variable req and multi select when I change the value in the command prompt, it changed the variable quantity value means the value of session variable initialization

    The dat I gave screenshot is what you're looking for or something else?

    Thank you
    saichand.v

  • Dashboard guest - Expression Variable

    Hello world

    I have another related question quick dashboard. What can be put in the box 'Phrase Variable' of the default value of the article exactly?

    I tried a few tests, and I couldn't understand exactly how, who was supposed to be used.

    1. put in a literal string
    (a) result: report has been filtered by the correct value, but the prompt itself was empty (i.e. do not by default the specified value)
    2 put in a session variable - VALUEOF (NQ_SESSION. SESSION_VAR)
    (a) result: command prompt is empty or NULL, but the report shows a view display error.
    3. put in a static variable repository - VALUEOF (STAT_RVAR)
    (a) result: command prompt is empty or NULL, but the report shows a view display error.
    4 put in a referential dynamic variable - VALUEOF (DYN_RVAR)
    (a) result: command prompt is empty or NULL, but the report shows a view display error.
    5. put in an expression for the current year - YEAR (CURRENT_DATE)
    (a) result: Guest showed the literal string "YEAR (CURRENT_DATE)" and the report showed no results.

    Can someone tell me how to properly use this article?

    Thank you!

    -Joe

    [http://4.bp.blogspot.com/_f689sAiiG-E/SKv8Fxu7wNI/AAAAAAAAAPk/pppwQ1DdEhg/s1600-h/obi-ee-variables-overview.jpg]

  • How to set the output of the report to the session variable

    Hello
    Is it possible to output report to the session variable value. If my report returns 1 row and 1 column.

    I have a dashboard command prompt where I select name, but I want to find the ID of the same name.
    This ID I want to move to a Fx column, to achieve this, I created an interim report and I got the code. Now my problem is how do I put this ID in the session variable.

    Please help if anyone knows...

    Have you read this:
    How to set the session / presentation in the repository variable variable

    Dashboard invites on Month Name but the report on the ID of the month filter:
    Re: Guest dashboard on the name of the month but the report on the necessary month ID filter

    If you have dashboard guest (name), then you can have that one report that is filtered by a name but present card to display or not id but use id in the service. Or two reports as in the solution in the second link above and the second report has id in the function and filter by the id of the first report. You need not define this ID in the session for this example variable.

    Please close your previous discussions, if they are treated.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Scripts of connection and SESSION variable.

    For decades, I've used the line "if/i ' % NomSession: ~ 0, 8% '==' ICA - tcp #" OUTPUT "to prevent login scripts running on Citrix servers. I also used other variants of "if/i ' % NomSession: ~ 0, 8%"=="RDP - tcp # ' and if/i"% sessionname "is" console"in scripts." Recently, these scripts began to behave badly and I discovered that the SESSION variable is no longer available when running it of login scripts. The SESSION variable does not get set until later. Once my desktop, I can open a DOS command prompt and see the SESSION variable. I suspect a fix released last month, 6/2016 led to this change in behavior. BTW, Windows XP systems do not have this problem

    I already get a work around for this, but I'm curious if anyone else has seen this and they know patch that caused it.

    FOR INFO. The solution is to add this stuffed animal at the beginning of my scripts. "

    If 'NOMSESSION % '==' ' for /F "tokens = 2" % in ("user request ^ |") "." trouver/i "% username %" ') set NOMSESSION = % f

    "

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • PHP Session variable in-app

    Hi, I'm pretty sure it's a n00bish question, but I'll have the session variable is problem when between php execs.

    So when the user connects, user id is stored in the session variable so I can use it throughout the app. However, the session variable is clearly not stored and throws a fit. I figured exit() destroys the session but that is not the case.

    I can, however, create a local variable for the user id, but I wondered how session variables are stored and retrieved.

    How is your java program interacts with the service of php?

    There is no treatment level OS things like cookies and session in Java variables.  You will have to do it yourself.

  • Bind session variables

    By trawling through the internet and this forum, I worked a little link to session variables that are defined by ADR, for example:

    Control pagination -: page_size,: page_offset,: row_offset,: row_count

    For authenticated requests -: current_user

    Body of the queries PUT and POST -: body

    It doesn't seem to be a definitive duty list anywhere, especially in the documentation accompanying the ADR.  If anyone knows of such a list?

    Hi RHARDEY,

    I pretty much like the list here: http://www.smartdogservices.com/oracle-applications-integrations/ords-use-case-integrating-salesforce-com-customers-ebs/

    Seems fairly complete. Although from my experience the following request headers DON'T work with RESTful services that you define in the APEX sql workshop, in the ADR 3.0 repository:

    -x-apex-base

    -x-apex-path

    -x-apex-charset

    -x-apex-method

    -x-apex-favorite-content-type

    But you can retrieve directly from owa_util.get_cgi_env (). They are called just differently there. But with owa_util.print_cgi_env, you can see all the available variables.

    X-apex-status and x-apex-forward response headers still work in the repository of the ADR.

    Hope that helps,

    ~ Dietmar.

  • To dynamically set values as session variables

    Hello guys,.

    I have a little problem with dynamically fixed values for text fields in my application. It is possible to set and passes the value even though I assign values, using the source (static, sql or other) but if I change the value in this field using a dynamic action it will not pass these values where I need. It shows a blank State, even if they are visible. Is there any solution to get these values passed as session variables.

    Kind regards.

    -shashikahk-

    Looks like you need to investigate the use of the property "items to submit Page.

  • Branch to the same page with different session variables

    Hello guys,.

    Is there a way that allows to create a branch that redirect to the same page with a different set of values for session variables. Or is it an effective way to add the buttons after that moves through the consecutive records in the pre and oracle apex.

    hope someone can help me.

    Kind regards.

    -shashikahk-

    is there a way to add the following buttons and pre

    If you create a form using the wizard pages, Apex will automatically create these buttons in some cases (as in a master form / retail).

    Create a master page / detail demo so you can see how it works. Apex creates a pre-rendering process:

    Get the value of the primary key next or previous

    Some of the hidden objects, such as Pxx_ROWID_NEXT.

    And two buttons: GET_PREVIOUS_ROWID and GET_NEXT_ROWID

    (if you do not use rowid as the primary key, another name will be generated).

  • Cannot get the value of the session variable (using row wise initialization).

    Hi all

    I have a scenario where I'm trying to get the value of the variable session of two columns.

    Table of database consists of the name of USER, Country_Region, columns Country_SubRegion.

    For example: ChadraKanth, Americas, America West is the data.

    I wrote a Sql query in the block of session initialization:

    Select "CR", Country_Region, Country_SubRegion

    of row_wise_init

    where USERID = ": the USER"

    When I test the RPD code gives the result like this:

    CR WesternAmerica of Americas.

    In my report I have two columns, a region and an another subregion.

    When I try to filter with the session variable "CR" for the column region his error giving: session variable is not initialized with

    This is the default.

    Question:

    1. session variable is contains several values in the column?

    2. how to filter the report on columns of region and sub region?

    Please suggest me.

    Kind regards

    Chandra Khalil.

    Hello

    A session variable cannot store more than one column, 1 variable = 1 value (column 1), horizontal initialization allows to store several lines, multiple values in the same variable.

    If to a user, you have several lines with multiple values, you need horizontal initialization, but it cannot store in the variable the value of the region and subregion.

  • ADF refresh page with page fragments jsff jsf after the set session variable

    Hello.

    I have a model that includes a button that allows you to select a profile, you push the button appear available profiles, choose one and press to accept. After that, I put a variable session successfully.

    I have a page of 'First' of jsf with two fragments of page jsff after seeing a link. The display link is composed by a headerView and detailView. The headerView had a variable binding. What I need, is that this parameter (bindVariableParameter) can be defined by the session of the model variable.

    That's what I get:

    I am in a homepage (separate Application Module), model button is pushed until I load "first" jsf page and after that, I go to the page jsf 'First', that information is loaded successfully. What I do in the Application Module is something like this:

    protected void prepareSession (one session) {}

    SessionScope card = ADFContext.getCurrent () .getSessionScope ();

    Company string = (String) sessionScope.get ("compId");

    System.out.println ("Default Comapny in British Colombia is:" + company);

    super.prepareSession (session);

    this.getSession () .getUserData () .put ("The company", company);

    System.out.println ("after the definition userData value card BC");

    }

    And in the variable binding expression of the headerView that I use:

    adf.userSession.userData.Company

    It works very well! But!

    When I press the button again and I chose another profile, the info is not updated. In the headerView or in the detailView.

    Also, when I go to the 'First' jsf page (without previously pressing the button model), I had no info, which is just, because I have no session variable. After I have press the model and select the profile, but the page is not refreshed.

    I tried many ways to this, but I'm lost.

    Could you help me?

    Kind regards.

    I'm not sure that understand your use case. What do I get, you set a parameter after that you press a button on the home page to pass this parameter to the first.jsf.

    Why don't you implement a method of the application module and call it directly with the parameter. The session of preparation will not be called whenever you browse but only init am.

    Do you need the parameter in the layer model or only in the display?

    Timo

Maybe you are looking for

  • EVENT_RIGHT_CLICK on a left-handed mouse

    Hi all! In the Windows settings for the mouse, MS mouse buttons "Primary" and "Secondary" call button. The main button is the one you normally use with your index finger. Relative to the right-handed mouse's left button, a left handed mouse, it is th

  • Audio problem OptiPlex 620

    I have his helmet, but not its speaker. Modified and tested speakers. I have tried driver and update the chipset. Spend hours without result... any ideas?

  • Why my ultimate used 7 get automatic updates

    I have a 6 year old acer which is 64 bit system... I have lost my 7 Ultimate 64-bit disk and downloaded from digital river iso. I entered the product key and everything goes through fine, but when I try to get the automatic updates, my computer won't

  • images in double Muse

    I am building a Web site with about 360 images in what I put there.The entire site has more than 2300 images, most are small Muse generated jpgs and 8px small square square colored, rendered text in menus accordions for the selection of the page - if

  • Cannot install wireless card

    Hello I formatted my pc today. Before I do, I downloaded wisely each driversfrom my product support page. Everything was fine, but the installation of the wireless card: at this moment, I can't connect to wi - fi networks (but I can connect via ether