How to pass presentation variable with enclosing single quotes

HI All,
As all of you know in 11g, Presentation variable can hold more than one value.So we can pass multiple values to the report through presentation variable.
If we select x,y,z values from prompt drop down,then those values will be stored like x,y,z in the presentation variable.
but I would like to store these values with enclosing single quotes like 'x,y,z'
The reason is I need to pass this variable value as input to BI Publisher sql dataset query where clause.
Please share your Ideas.
Thanks,
Aravind

Aravind,
Check this
Predefined Presentation Variables in OBIEE 11G | Praveen's Blog

Similar Messages

  • How to pass presentation variable in column Fx using GO URL

    Hi All,
    I want to show a download link directly using go url .
    In my dashboard prompt i am using some presentation variable .
    those variables i am using in the report's column formula .
    When i am applyning the prompt that it is not applying in the column Fx. so when i download the excell it shows same data for all the option choosen.
    If anybody knows the syntax please help.
    Thanks ...

    Hi,
    Like this you can pass presentation variables to the columns using Go URL
    '<a href=saw.dll?Dashboard&PortalPath=/shared/Test/_portal/Test%20KPIs&Page=Page1&Action=Navigate&col1="Dim%20Country"."Country%20Name"&val1='||'@{PV_Contry'||'>'||'Country'||'<\a>'
    Please use backslash in anchor tag end. Since here it is not accepting I am using forward slash.
    Thanks
    Vino

  • How to pass Presentation Variable Value from Main Report to Detail Report

    Hello,
    I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
    But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
    "ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
    It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
    I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
    I just cant pass the written values for presentation variable prompts to detail report..
    Please help :)

    Hi,
    What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
    Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
    Hope this helps.
    Regards
    MuRam

  • 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

  • Passing Presentation Variables to Guided Navigation

    I'm having trouble passing Presentation Variables (and Session Variables) to analyses called via a Guided Navigation link in 11.1.1.5.
    1. Created a dashboard prompt to select from a list of months. The prompt populates a Presentation Variable called pMo.
    2. Created an analysis that displays two columns: Month and '{pMo}'
    3. That analysis has this filter: Month is equal to / is in {pMo}
    4. Put the dashboard prompt and the analysis onto a dashboard page.
    5. Put an Action Link onto the dashboard page, calling that same analysis in a new window.
    6. View the dashboard page
    7. Initial analysis displays an error, which is expected since pMo has no value.
    8. Select a month, which populates pMo. Analysis displays properly. Month and pMo both show correctly.
    9. Click the Action Link.
    10. The new window shows the correct value of Month, but NOTHING in the pMo column.
    This is not logical. If the correct value of Month is shown in the new window, that means that Month MUST have been filtered using pMo. But the pMo column shows blank.
    I see the exact same behavior with Session Variables. The value of the variable is correctly used to filter the analysis, but that variable's value doesn't show up in the analysis column.
    In fact, if I assign a default value for the variable, the Month column shows the "correct" (i.e. selected) value, but the column containing the formula for the variable shows the variable's default value, not the value that was obviously used by the filter.
    The problem only occurs in the new window that appears with the Guided Navigation link. The original dashbord page shows correctly.
    Here's the error when using a Session variable. Similar error when using Presentation variable.
    Error getting drill information: SELECT "Channels"."Total Channel" saw_0, "Times"."Month" saw_1, VALUEOF(NQ_SESSION.Mo) saw_2 FROM "Retrospectives" WHERE "Times"."Month" = 'Mar-2005'
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.subsystem.portal, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. *[nQSError: 23006] The session variable, NQ_SESSION.Mo, has no value definition. (HY000)*
    So, if NQ_SESSION.Mo has no value, how did the Filter know that Mar-2005 should be used? NQ_SESSION.Mo DOES have a value. Why won't the column display it?
    By the way, in case you're wondering 'what's the big deal', it's this: I want to be able to type a Commission Percent into a text box, store it in a variable, and then use that variable in a calculation within a Guided Nav link. That's what I was originally testing. The description above is what I finally figured out is happening. The variable has a value that can be used as a filter condition, but that value is ignored when used in the columns of that filtered analysis.
    Edited by: Mark T. on Jan 7, 2012 7:15 AM

    Mark T. wrote:
    I'm having trouble passing Presentation Variables (and Session Variables) to analyses called via a Guided Navigation link in 11.1.1.5.
    1. Created a dashboard prompt to select from a list of months. The prompt populates a Presentation Variable called pMo.
    2. Created an analysis that displays two columns: Month and '{pMo}'
    3. That analysis has this filter: Month is equal to / is in {pMo}
    4. Put the dashboard prompt and the analysis onto a dashboard page.
    5. Put an Action Link onto the dashboard page, calling that same analysis in a new window.
    6. View the dashboard page
    7. Initial analysis displays an error, which is expected since pMo has no value.
    8. Select a month, which populates pMo. Analysis displays properly. Month and pMo both show correctly.
    9. Click the Action Link.
    10. The new window shows the correct value of Month, but NOTHING in the pMo column.
    This is not logical. If the correct value of Month is shown in the new window, that means that Month MUST have been filtered using pMo. But the pMo column shows blank.
    I see the exact same behavior with Session Variables. The value of the variable is correctly used to filter the analysis, but that variable's value doesn't show up in the analysis column.
    In fact, if I assign a default value for the variable, the Month column shows the "correct" (i.e. selected) value, but the column containing the formula for the variable shows the variable's default value, not the value that was obviously used by the filter.
    The problem only occurs in the new window that appears with the Guided Navigation link. The original dashbord page shows correctly.
    Here's the error when using a Session variable. Similar error when using Presentation variable.
    Error getting drill information: SELECT "Channels"."Total Channel" saw_0, "Times"."Month" saw_1, VALUEOF(NQ_SESSION.Mo) saw_2 FROM "Retrospectives" WHERE "Times"."Month" = 'Mar-2005'
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.subsystem.portal, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. *[nQSError: 23006] The session variable, NQ_SESSION.Mo, has no value definition. (HY000)*
    So, if NQ_SESSION.Mo has no value, how did the Filter know that Mar-2005 should be used? NQ_SESSION.Mo DOES have a value. Why won't the column display it?
    By the way, in case you're wondering 'what's the big deal', it's this: I want to be able to type a Commission Percent into a text box, store it in a variable, and then use that variable in a calculation within a Guided Nav link. That's what I was originally testing. The description above is what I finally figured out is happening. The variable has a value that can be used as a filter condition, but that value is ignored when used in the columns of that filtered analysis.
    Edited by: Mark T. on Jan 7, 2012 7:15 AMI don't have 11g so what I say may not apply to you at all. That being said, it appears that what you are describing is similar to how the Link or Image and Guided Nav. objects work in 10g. Bear with me for a sescond while I explain. In the Link or Image object, you can open a destination report in a new window, but PVs don't pass through. In the Guid. Nav. object, PVs pass through to the destination, but you don't have the option to open the report in a new window. The filtering works, which is why your destination report is properly filtered; it's just that the PV is not passed and therefor the pMo column is blank.
    Since you said your destination report opens in a new window, it is acting like the Link or Image object in 10g. So try doing this:
    1) Ensure that your dashboard prompt is set to "dashboard" scope. This being that the PVs with the same name will be set for all dashboard pages, once set in the parent page.
    2) Create a new dashboard page and include the same prompt as in the parent page, and your destination report. Hide the prompt on this page.
    3) Now in your Action Link of the parent report, instead of pointing to the report itself, point it to the dashboard page created in step 2).
    My theory is this: With the dashboard prompt set to dashboard scope, the PV of the prompt in the destination page will be set as soon as you hit the "Go" button. This will allow the report in the destination page to be set by the same variable, even though the value is not passed on directly through the Action Link.

  • How to pass presentation varibale as a paramater in Action Link

    Is it possible to pass presentation variable as a parameter to 'Navigate to Web page' Action Link?

    Could you be bit clear with your requirement?

  • How to replace double quotes with a single quote in a string ?

    Hi All:
    Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
    My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
    Thanks,
    Dima.

    Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
    SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
    REPLACE(
    STN. 'A'{code}
    Nicoals.                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • How to use Mulitple DAQs with a single triggered event on only one of the DAQs

    I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....

    TCjr,
    Please refer to your other post:
    How to use Multiple DAQs with a single triggered event on only one of the DAQs

  • How to pass a variable more than one values?

    How to pass a variable more than one values?

    You can't.
    During 1 session, 1 ODI variable can have only 1 value at a time.
    If you need more than 1 value, you will have to do somethink like a loop inside your package, and refresh the variable value each time.

  • How to  pass a variable value into a custom planning function via a web

    Can some one tell me
    How to  pass a variable value into a custom planning function via a web template?
    What are the different types of Planning function parameters available and what is the difference between them?
    Thanks
    babu

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • SQL Injection, replace single quote with two single quotes?

    Is replacing a single quote with two single quotes adequate
    for eliminating
    SQL injection attacks? This article (
    http://www.devguru.com/features/kb/kb100206.asp
    ) offers that advice, and it
    enabled me to allow users to search name fields in the
    database that contain
    single quotes.
    I was advised to use "Paramaterized SQL" in an earlier post,
    but I can't
    understand the concept behind that method, and whether it
    applies to
    queries, writes, or both.

    Then you can use both stored procedures and prepared
    statements.
    Both provide better protection than simply replacing
    apostrophes.
    Prepared statements are simple:
    Set myCommand = Server.CreateObject("ADODB.Command")
    ...snip...
    myCommand.CommandText = "INSERT INTO Users([Name], [Email])
    VALUES (?, ?)"
    ...snip...
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Name",200,1,50,Name)
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Email",200,1,50,Email)
    myCommand.Execute ,,128 'the ,,128 sets execution flags that
    tell ADO not to
    look for rows to be returned. This saves the expense of
    creating a
    recordset object you don't need.
    Stored procedures are executed in a similar manner. DW can
    help you with a
    stored procedure through the "Command (Stored Procedure)"
    server behavior.
    You can see a full example of a prepared statement by looking
    at DW's
    recordset code after you've created a recordset using version
    8.02.
    "Mike Z" <[email protected]> wrote in message
    news:eo5idq$3qr$[email protected]..
    >I should have repeated this, I am using VBScript in ASP,
    with an Access DB.
    >

  • How to pass a string variable in a single quote

    Hi,
    I am trying to pass a single quoted string, 'some string', into a concat expression.
    My situation is some thing like
    I have an array of states
    <copy>
    <from>
    <ListOfValues xmlns="http://tbone.coi.test/amis">
    <!-- State -->
    <Value>A</Value>
    <Value>B</Value>
    <Value>C</Value>
    </ListOfValues></from>
    <to variable="StateList"/>
    </copy>
    then I loop through the StateList array to get each state as
    <copy>
    <from variable="StateList" query="/tns:ListOfValues/tns:Value[bpws:getVariableData('iterator')]"></from>
    <to variable="currentState"/>
    </copy>
    I then build an xpath expression like:
    <copy>
    <from expression="concat('/nsxml0:GetSummariesResponse/nsxml1:Summaries[nsxml1:State = ',bpws:getVariableData('currentState'), ']')"></from>
    <to variable="xpath"/>
    </copy>
    As the result, my xpath look like:
    /nsxml0:GetSummariesResponse/nsxml1:Summaries[nsxml1:State = A]
    but I need a state surrounded by single quote as 'A' or xpath query like
    /nsxml0:GetSummariesResponse/nsxml1:Summaries[nsxml1:State = 'A']
    Any ideas how can I single quote a value of bpws:getVariableData('currentState') in my concat expression
    Thanks,
    -V

    Have you tried 'the string contain''s an &apos;'?

  • Unable to pass  presentation variable value to Go url with narrative view

    I am trying to use navigate option of Go URL. I have Dashboard prompt with presentation variable (pv)defined. I am able to see the pv value in compund view but unable to see in Narrative view. Any thoughts?

    Check my blog entry here http://oraclebizint.wordpress.com/2007/11/26/oracle-bi-ee-101332-same-page-navigation-drills-and-passing-parameters/. It has an example.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • ADF : How to pass a variable from one frame to another frame ?

    Hi,
    I have an html page divided into 3 frames, all inside a frameset. Each frame are linked to a specific .jsf page (src attribute). When I list a list thanks to a ADF datatable in ONE frame, each row has a "show more" button. When I click this button I succeeded to print row detail inside the same frame thanks to the processScope ADF's native variable. The problem is that I want to display the row detail in another frame, clicking from this current frame. So for this I need to reload the other frame which display the content of the processScope variable.
    For this I use the javascript code :
    => parent.frames['bottomRight'].location.reload()
    Just before refreshing, I put the variable in the processScope of course like it appears in the backing bean :
    FacesContext context = FacesContext.getCurrentInstance();
              CLPRMBuilding building = (CLPRMBuilding)
         context.getApplication().getVariableResolver().resolveVariable(context, "building");
         if (building == null)
         return "error";
         AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
         afContext.getProcessScope().put("buildingDetail", building);
    Next, when the user click on the button "show more" a binding CoreCommandButton component is done. And the accessor's code is executed :
    public void setShowMoreCommandButton(CoreCommandButton showMoreCommandButton) {
              this.showMoreCommandButton = showMoreCommandButton;
              showMoreCommandButton.setOnclick("parent.frames['bottomRight'].location.reload()");
    And so the other frame is reloaded ! But the "buildingDetail" variable seems not to be present in the processScope because in the jsf page displayed by the other frame no content is printed, like if the variable were not initialized. How to do then ? How to pass the buildingDetail variable to the other frame which I need to reload to refresh it's content ?

    elaine_g wrote:
    I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
    class B {
      int b;
      A r = new A();
      r.a;  //syntax error
    }Why? Class definition restricts what you can define within a class to a few things:
    class X {
        Y y = new Y(); //defining a field -- okay
        public X() { //defining a constructor -- okay
        void f() { //defining a method -- okay
    }... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
    This is also illegal syntax:
    int doB() {
          A r = new A();
          r.a;  // error: not a statement
    }Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that.

Maybe you are looking for

  • Photoshop CS5 Crashes when I open it and this is after I installed the update

    Hi All, I'm running PS CS5 on my MacBook Pro (OS X.5.8) but every time I open the program it crashes and shuts down after the second command.  I did a little searching and I read about TWAIN files so I dumped the one file I had.  But that wasn't help

  • How to display the archive link image in third party tool TSLImage viewer.

    Currently in our workflow scenario we are displaying the archivelink image in objects & Attachment, using SAP document viewer.  But the new requirement is, the attachment in workitem should be displayed using a thrid pary tool, EASY TSL IMAGE VIEWER.

  • Data protection in FDM

    We're trying to set up data protection so that FDM doesn't overwrite manual input schedules but only replaces GL data. We've set up a C1 member called "Data_GL" to receive this data. The FDM manual reads as follows but offers no clues on how to set a

  • Newer flash player not opening SWFs

    Hi Everyone I'm a teacher and am having problem opening student SWF files. I believe many of my students are still in Flash CS6, or perhaps CS5. I have Flash CC installed. It looks like my Flash Player is 11.7.700.169. But I also have Flash Player 11

  • Problem dreamweaver to insert swf flash movie cs6

    when i isert in dreamweaver a movie created in flash cs6, i push the bottom of play for preview only show a white frame, the action no have. somebody have the solution plese share. Thanks