Tree menu based on session variable?

Hi all,
is there somewhere a javascript or php or html (or extension)
tree menu
that will highlight the current branch based on a session (or
cookies, at
least) variable content?
I cannot fint it anywhere.
TIA
tony

hi Christian,
Thanks for your help,
Here is my situation, I have a fact table of very high volume, because of which reports are taking lot of time in displaying results. Recently I have been assigned one of these reports and asked to improve its performance. so, I thought to use a opaque view(thought to apply all the fact related reports filters into WHERE Clause using session variables which can bring down table volume) and then switch this table source with original fact table using 'dynamic' table under existing alias table definition with the help of session variable. The purpose of this table switch is, all existing reports will  source from original fact table, where as modified report will be sourcing from opaque view.
I would like to try to your suggested approach "creating a placeholder column which contains the exact variable string content for the table source and the opaque view source respectively", but how does OBIEE switch priority of these LTS, can you please explain me this approach a bit further.
Thanks,
vijay

Similar Messages

  • Xml search and replace for 'Session Variables' in column title view

    Hi Experts,
    I have around 10 reports where measure column titles are displayed based the session variable.
    Below is the syntax I have used in the column title
    @{biServer.variables['NQ_SESSION.VariableName']}
    Now I would like to replace the above syntax with some static text. To do this, I am trying to use the xml search and replace feature in the catalog manager.
    For some reason, catalog manager is unable to find the syntax in the xml file. I have tried using escape character also for the apostrophe by using &apos, but no luck.
    Any pointers on how to replace the text?
    Thanks

    Using Analysis get the xml conversion for @{biServer.variables['NQ_SESSION.VariableName']} from Advanced tab's xml code
    use this code to find in catalog manager, if you able to find then go for search and replace option.
    I think this should work for you.

  • Session variable filters in the integration between OBIEE and webcenter

    Hello All,
    I have a customer with the requirement to make sure that reports created in answers and containing sessions variables in filters definition will be correctly filtered once called from webcenter.
    So if an OBI report is diplayed in webcenter and contains the same type of filters (based on session variable), will the results be filtered based on the specified variable?
    In other words can we use session variables in the integration between OBIEE and webcenter?
    Thanks Olayinka

    Have you follow all the steps written here :
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12188/T421739T475591.htm#T480640
    Do you have create the groups ?
    Do you connect as a member of the group XMLP_ADMIN ?
    Cheers
    Nico

  • Session Variables DATA_TZ, DATA_DISPLAY_TZ, how to use them?

    Hello gurus
    Has anybody ever used DATA_TZ, DATA_DISPLAY_TZ?
    Where do I define the content of these 2 session variables? If done in RPD, then how do I define the initialization block logic for it?
    What's the idea behind?
    How do I apply it in the front end?
    Any lights will be appreciated
    Thanks

    Thanks for the reply
    I saw that document, and then decided to post this question, now you are referring me back to the document. Nice..
    Anyways, What I don't understand is where are we applying DATA_TZ, DATA_DISPLAY_TZ?
    It doesn't seem to be created in rpd like other session variables.
    So if I edit my config files with all of the time zone elements like what the document shows:
    <TimeZone>
    <DefaultUserPreferred>(GMT-02:00) Mid-Atlantic</DefaultUserPreferred>
    <Logging>(GMT-05:00) Eastern Time (US &amp; Canada)</Logging>
    <DefaultDataOffset> what do I put here? </DefaultDataOffset>
    <DefaultDataDisplay>what do I put here? </DefaultDataDisplay>
    </TimeZone>
    If I hardcode something, then the displayed data will always be that time zone. But I want it to display dynamically based on user's personal time zone setting in their account.. My analysis is that it has to work based on session variables.
    My question is, how do I create these variables? Do I create them in rpd? Or are they already embedded in BI? If so, how would I use them in this case so the server knows to change the variables value based on user's individual account setting?
    Thanks for help

  • Session Variables to control Datasource used by iBots

    Hello everyone,
    i'd like to know whether it is possible to control the session which is used by iBots.
    What i want to achieve is, that i can start an iBot within a certain session with given parameters, based on session variables.
    I have one SessionVariable "sDB" which can be set to =1 or =2. This is controled via the URL used to start OBIEE.
    Now i want to control my ibots by forcing them to start with sDB=1 or sDB=2 etc.
    Does anybody know a solution. Any hint might help aswell.
    Thanks!

    Thank you David for the response. As you guessed, I'm fairly new with session variables. What I'm looking for is as follows-
    On my Architecture website, I have an html form where clients would enter their design preferences and Submit. The website then sends an email to the client with the details they had entered; for confirmation. This had worked properly with form variables as the email is sent right after the form is filled.
    However, now I have added a License agreement page and a second form with other design details, which has to be filled in before the client's email is sent. So, I've set the Page1 form variables as session variables to carry over to the 4th page where it is sent as email. I am able to retrieve the session variables on the fourth page, but what I require is the correct syntax for using it in the subject field and the message body of the email, so that the clients get them in their email.
    I had earlier used the following php code for sending emails using form variables-
        $to="From: $email";
        $subject="$name, Thank you for visiting our website.";
        $from="[email protected]";
        $msg="Your Reg. details-\r\n\n$name\r\n$address\r\n\nPhone No: $phone \r\nE mail: $email \r\n\nMessage:\n$message";
        $fla=mail($to,$subject,$msg,$from);
    ; where the form variables are- $name, $address, $phone, $email, $message
    I have now set them as session variables-
    <?php
    session_start();
    $_SESSION['name'] = $name;
    $_SESSION['address'] = $address;
    $_SESSION['phone'] = $phone;
    $_SESSION['email'] = $email;
    $_SESSION['message'] = $message;
    ?>
    ; and I'm being able to retrieve them on the 4th subsequent page. As mentioned, what I am looking for is the correct syntax to use this data in a php email code.
    I will be very grateful if you could provide me with a sample php email code for sending an email with session variables in the 'from', 'to', 'subject' and 'message' fields.

  • How to store session variables in drop down menu (and radiobutton/checkbox)

    How am I going to store session variables in the drop down menu, radio button, checkbox.
    In text area, I do like below:
    <input type="text" name="membershipno" size="5" maxlength="50" value="<%=((session.getValue("Smembershipno")!=null)?session.getValue("Smembershipno"):"") %>">
    Any idea?

    Hi jeffkyt79, I could have answered this on Expert's Exchange. But I suppose it would be hard as the site is down right now :-(
    Here is sample code for the form:
    <form action="" name="form1">
    <input type="text" name="field1" value="<%
    if (session.getAttribute("field1")!=null) {
    out.println(session.getAttribute("field1"));
    } %>"><br>
    <input type="text" name="field2" value="<%
    if (session.getAttribute("field2")!=null) {
    out.println(session.getAttribute("field2"));
    } %>"><br>
    <input type="text" name="field3" value="<%
    if (session.getAttribute("field3")!=null) {
    out.println(session.getAttribute("field3"));
    } %>"><br>
    <input type="checkbox" name="check1" value="tick"<% if (session.getAttribute("check1")!=null) out.println(" checked"); %>><br>
    <% String selRadio=(session.getAttribute("r1")!=null)?(String)session.getAttribute("r1"):""; %>
    <input type="radio" name="r1" value="yesdot"<% if (selRadio.equals("yesdot")) {out.println(" checked");} %>>
    <input type="radio" name="r1" value="nodot"<% if (selRadio.equals("nodot")) {out.println(" checked");} %>><br>
    <select name="sel">
    <% String selOption=(session.getAttribute("sel")!=null)?(String)session.getAttribute("sel"):""; %>
    <option value="option1"<% if (selOption.equals("option1")) {out.println(" selected");} %>>OPTION 1
    <option value="option2"<% if (selOption.equals("option2")) {out.println(" selected");} %>>OPTION 2
         <option value="option3"<% if (selOption.equals("option3")) {out.println(" selected");} %>>OPTION 3
    </select>
    </form>
    And here's the revised javascript function to put in form1.jsp:
    function newWin() {
    f=document.form1.elements;
    str="?";
    mypage="test2.jsp"; // I've hardcoded the url for testing but you can fix this
    for (i=0;i<f.length;i++) {
    if (f.type=="text") {
    if (f[i].value!="") {
    str=str+f[i].name+"="+f[i].value+"&";
              continue;
         if (f[i].type=="checkbox"||f[i].type=="radio") {
         if (f[i].checked) {
         str=str+f[i].name+"="+f[i].value+"&";
         if (f[i].type=="select-one") {
         str=str+f[i].name+"="+f[i].options[f[i].selectedIndex].value+"&";
    str=str.substr(0,str.length-1);
    // now open the popup
    mypage+=str;
    win=window.open(mypage, 'myname'); // I've left out the winprops but you can fix this
    If you can ask any more questions, could you do it on EE (if possible!!). I know this works because I've tested it.

  • Access Session Variable

    Hi All,
    I am using cutom autentication schema called "My Auth Scheme". I want to hide some of the menu options (Tree List) based on the Role Type.
    Could anybody give me any pointer about how to acheive this. And most importantly how to access the session variable (Though I am not even sure about Role Type is going into session or not). Please guide me..
    Regards
    Amit Arora

    Amit,
    You're using a lot of terms that you have not defined:
    I am using cutom autentication schema called "My Auth Scheme". It's an authentication scheme but what is the relevance of it being custom (in what way is it custom and how is that relevant?) and why do we care what you named it?
    I want to hide some of the menu options (Tree List) based on the Role Type. "Role Type" -- What is that?
    And most importantly how to access the session variable ...What do you mean? What session variable?
    Please describe your exact functional requirements, what you are doing now to achieve them and how your actual results differ from the expected results. Also, show us all of the code you are using and demonstrate the problem on apex.oracle.com so we can see exactly what you're trying to do.
    Scott

  • Session variables not clearing

    Hello,
    I'm working on a series of web pages that will be compatible with an Apple iPad.  Here's what I'm working on:
    When a user hits my index.cfm page, CF checks a table for records.  If there are no records, cflocation sends the user to a menu page and only creates one session variable, "Device."
    If there is one record in the table, cf creates the variables "Device" and "Loc" and sets "Loc" to whatever the value in a certain table field is.  Then cflocation sends the user to the same menu page as above, but because "Loc" is defined, the value of "Loc" is output in various places on the page.
    If more than one record is found, the user must select their choice from the index.cfm page.  From there, cflocation takes their choice, adds it to a url variable, and takes the user to a page that defines "Loc" based on the url variable.  Then cflocation sends the user to the same menu page, but because "Loc" is defined, the value of "Loc" is output in various places on the page.
    Everything works well.
    Here's the problem: I can't get "Loc" to clear on demand.  At the top of my index page, I have <cfscript>StructDelete(Session, "Loc");</cfscript> to clear anything that might be in the application.  On my desktop (a PC browsing with Chrome), this works.  For testing, I'll put one record in the table and the process that I described above works. If I delete that record and run index.cfm again, "Loc" is cleared and the menu page appears as it should.
    However, if I add a record, run index.cfm on my iPad to create "Loc," then go back and delete the record from the table and run index.cfm again, the variable is still defined.  This happens on the iPad only.
    I'm stuck. Can anyone offer any insight?
    Thank you!

    You might try adding cache directives to your HTTP headers using CFHEADER.  Something like:
    <cfheader name="Cache-Control" value="no-cache">
    <cfheader name="Expires" value="0"> 
    CFHEADER
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7a ea.html 
    Caching in HTTP from W3C
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

  • Urgent help required...for replacing JSP session variables

    I am trying to enhance the performance of a j2ee based webapp which use session variables to store the data...
    Is there any alternative for session variables..The project is based on j2ee-Struts frame work..But the amount of code maintainance should be minimum ....so i can't create beanforms for all these data...
    Is there any XML based methods available...??

    ok... thanks... i created a fla file and inthe action script
    pasted the following code
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://flash.ispstream.com/ondemand/unikron/my_video_dj/");
    var ns:NetStream = new NetStream(nc);
    contentMain.myVideo.attachVideo(ns);
    ns.setBufferTime(5);
    ns.play("dvd_r");
    nothing is working if i tried to load... can u help me out

  • Session Variable? -How do I treat this

    Hello,
    I am writing an application that is tracking the results
    arriving from various selected stations (230 of them). My
    application will dynamically displays only stations for which
    results have been received. I plan to have my page refresh every 5
    minutes to update the results list.
    Now based on results received I will update a report page, so
    I need to set a variable that changes every time my query result
    set changes and then I will pass this new value to the report page
    for processing. I am confused about how to treat this variable.
    Should I use set it as a cookie or a session variable? (but it
    could change many times during the session)? TIA

    Hi,
    Your questions is not clear, so I'm not sure if this is what
    you are looking for.
    Let's forget for a moment how the data gets there, and let's
    focus on the report.
    You have a databases that get's constantly updated with
    new/changing records. It's sounds to me like you need to timestamp
    your data, and when the report page is opened, you need to
    aggregate data from now()-5 minutes to now() and display them.
    The refresh for the page every 5 minutes needs to be done
    with javascript (window.setTimeout)
    cheers,
    fober

  • How to pass page session variable to on-demand PL/SQL process

    I am trying to execute a stored procedure that takes two page session variables as input and executes code based on those two variables. I have tried creating a stored procedure on the db-side and calling it using:
    BEGIN
    PROC_UPDT_EMP(&P23_TC_ID, &P23_EMP_ID);
    END;
    but APEX rejects the variables.
    I have also tried putting in the entire procedure in APEX as well, but I get the same problem. I have also tried using the :P23_TC_ID syntax, and still a no-go. What am I doing wrong?

    If PROC_UPDT_EMP is a stored procedure that takes 2 IN parameters, you would do
    proc_updt_emp(:P23_TC_ID,:P23_EMP_ID);in an after-submit page process. That would pass in the values of those 2 items from session state.

  • How to default bind variable using session variable at run time

    Hi All,
    I have a requirement where all VO queries (multiple VOs) produce only records that meet a certain value.
    For example, I have three tables with 3 VOs and each of them has a one-to-many relationship to another table (let's call it ref table and this table has a field called release). One of the 3 VOs is a parent/master table, and the other two are child tables. I created a VO for master table that linked to the ref table and created a view criteria using the release (use bind variable) field from the ref table. The other child tables have their own VO that has view criteria that also linked to ref table using the release field.
    On the UI page, I created a query component and a table from the master table VO. I also dropped the child table VOs in a tabbed panel which partial triggered by the master table. When I ran a query for a 'release' (hint: ref table value), the table for master table was filled the correct records that meet the criteria. Unfortunately, the child tables were not correct due to the query didn't use the bind variable that filter only records for the same 'release' value as the master table.
    The question is how do I 'default' or dynamically set the bind variable on the child tables based on the selection criteria from the query component. I am thinking to set a session variable from the query and use it in the bind variable in the child table, but not sure how to do it.
    Any suggestion how to do it or better solution to achieve the same effect?

    Hi,
    How about creating a custom AMImpl method, that takes parameters as required, and set the bind variables for all the desired VOs and perform executeQuery on them.
    You could expose this as client interface, and then use the method as parameter form.
    Check this thread for ex.
    Re: Setting Attribute in View Object through Managed Bean
    -Arun

  • Using Session Variable with Conditional Formatting Filter

    Hi,
    I'm trying to add a condition to my report in order to flag all opportunities that have a close date that is in the past. The way I'm trying to do this is by adding a condition to say when close date is less than current_date, flag the column with an image.
    Issue I'm having is that the filter window within conditional format tab appears to not have the session variable option as you do when you create a filter on a column the normal way. A colleague told me to use an SQL expression, but again this option seems to be unavailable too within the conditional format tab.
    Can anybody assist please?
    Thanks

    Create a new column and write a CASE WHEN condition like case when close date < current_date then 'Y' ELSE 'N' END.
    Then on your actual date column, you can do conditional analysis based on the newly created column for values having Y then the image.
    finally, you can hide the newly created column.

  • Can I set a Session Variable from a Dashboard Prompt, using values that are

    Hi All
    Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
    Select Value Set Variable Value
    My 0
    My Team 1
    My Companies 2
    My Teams Companies 3
    Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
    The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
    Any clue will be greatly appreciated.
    Thanks

    Hi kishore..
    Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
    Purpose: I want the session variable to be set based on whatever report that im currently in.
    And i dont want to use presentation variables because im using a reset button in my page.
    My reset script resets presentation variables and NOT session variables.
    Thanks in advance
    Loy

  • Help Needed in checking session variable

    In a sample site, I am calling a bounded task flow from an unbounded task flow. In the called taskflow the default activity is a router which checks the session variable, and the home page will be loaded only if the session variable is not null. If session variable is null router will lead to a page dispalying 'session expired'. But even after clearing the session if I copy pasted the previous url, the home page is loading. But when I call bounded taskflow from a bounded taskflow, it is working fine. Can anyone suggest any solution? Thanks in advance

    Thanks for the reply. I'm using jdev 11.1.1.5.0.. I'm just trying with a sample example. I have a login page and when the user logins, the user name is stored in session. the loginpage view activity is in adfc config unbounded taskflow. The login credentials is validated in a backing bean and based on the return value, if the login is valid, a bounded taskflow 'hometaskflow' is called. In this bounded taskflow, the default activity is a router wchich checks the username stored in session. If the username is not null it will lead to the 'homepage' view. Else if it is null it will lead to a 'sessionexpired' view.
    In the java class of login page I'm accessing the session variable as shown
    public Username getSessionBean()
    Username username =
    (Username)resolveExpression("#{Username}");
    return username;
    public static Object resolveExpression(String expression)
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    On login button click the function being executed is as shown
    public String onLoginClick() {
    if(String.valueOf(itUserName.getValue()).equals("admin")
    && String.valueOf(itPassword.getValue()).equals("admin"))
    Username username=getSessionBean();
    username.setUsername(itUserName.getValue().toString());
    return "success";
    else {
    return "invalid";
    And to set username as null on logout, I used this function on logout click
    public void clearSession()
    Username username=getSessionBean();
    username.setUsername(null);
    The EL expression used to check the value of session variable is
    #{sessionScope.Username.username==null} outcome is expired
    #{sessionScope.Username.username!=null} outcome is active
    This worked when I used in a bounded taskflow, which is being called from another bounded taskflow. But not working in this scenario...

Maybe you are looking for

  • How Will Yosemite Logical Volume Group Affect Two-Partition Drive?

    After installing Yosemite, my Macintosh HD became a Logical Volume Group. Now, in Disk Utility, both the Drive and the Volume have the same name - Macintosh HD. I want to use one of two partitions on an extra internal drive in my Mac Pro (Mid 2010) a

  • Alerts

    Hi, Can any one post me the step by step method for working on alerts(Begin to End) all the required steps to be done. I need to send  an alert when ever an error is occured through the email to the receiver. Thanks, SrinivasaP

  • Disabling "FCP has reached end of tape"

    Hi, is it possible to manually control the capturing process without FCP detecting the end of a tape? I am capturing VHS tapes through a canopus advc300. Frequently, the capturing process would stop because FCP thinks its the end of the tape. Pretty

  • ITunes 8 Visualizer Issue

    Whenever i use the New Visualizer on iTunes 8, it moves very laggy, and skips alot, unless i move my mouse around....as long as it's moving it's smooth and looks awesome. This occurs if i'm in regular or fullscreen mode. Any Idea's? P.S. I have a wir

  • Silverlight 5, SharePoint 2010 and Require elevated trust when running in-browser

    I cannot get a Silverlight 5 application hosted in the SharePoint SilverlightWebPart to have elevated trust. Steps I have taken. 1. Edited the registry to allow the Silverlight 5 app to run elevated as per http://msdn.microsoft.com/en-us/library/gg19