Presentation Variable in Legend or Static Text

Hi Experts,
Is it possible to call the Presentation variable in Legend or Static Text View.
Please let me know how can I achive this.
Thanks,
Balaa...

Take a look at this. It shows you where you can use session, repository and presentation variables and their syntax:
http://shivabizint.files.wordpress.com/2008/10/obiee-variables-overview.jpg

Similar Messages

  • Define presentation variable in column header

    I want to display presentation variable in column header.
    I tried both:
    @{p_mycategory}{'My category'} Sales
    @{p_mycategory}{My category} Sales
    but failed to display neither p_mycategory value nor the default 'My category'.
    Any ideas?

    I know to add presentation variable in title or narrative text.
    The issue is in chart series name.
    Assuming I want user to select category, which entered to p_categ.
    The lines graph chart should display one line for the selected category and the second line should display the other\total categories.
    In the legend I want to mention the name of the selected cetegory and not saying 'the selected category' or something like that.

  • Static text | variable | static text

    i'm thinking i need a simple actionscript to do this but i'm
    not exactly sure. i have a dynamic text field that is loading a
    variable named count. however i would like to place static text on
    either side of the value of the variable. since the variable is an
    integer that will only increase, it's horizontal width will also
    increase as well. i can't very well place two strings of static
    text on either side of a variable that will grow in width over
    time. does that make sense?
    essentially, i want to have a dynamic text box display a
    string of text, then the value of a variable (that will change in
    length), then another string of text, but i would like it to all be
    seamless, looking as if i just typed the whole sentence in a word
    processor. thanks for your time!

    let say you have a dynamic text field with instance name
    my_txt
    when you want to increase the value, you run my_txt.text++;
    when you want to decrease the value, you run my_txt.text--;
    now, convert the dynamic text field to a movieclip symbol,
    set the instance name my_mc
    now, to set the value of text, we should use
    my_mc.my_txt.text++;
    but we are not going to set the value in this way.
    now, go into my_mc movieclip, select the 1st frame, attach
    script:
    var actualValue:Number = Number(this.my_txt.text);
    var displayValue:String = "";
    function setValue(d) {
    actualValue += d;
    displayValue = "something"+actualValue+"something";
    my_txt.text = displayValue;
    setValue(0);
    go back to your maim timeline. and now,
    when you want to increase the value, use my_mc.setValue(1);
    when you want to increase the value, use my_mc.setValue(-1);

  • How the repository variable work on the dashboard report in static text

    I would like to display something like the below on the dashboard prompts in static text.
    The Data extracted as of <repository variable>
    I created a repository variable which extracts the last updated date of the warehouse.
    The static message on the dashboard should show as above where repository variable should be the last updated date from the warehouse.
    I appreciate if anyone can help me do this.
    Thanks in advance.

    1) Put an extra column in your workspace. It doesn't matter what column you choose. Drag this column all the way to the left so it is the first column in your Request.
    2) Click on the fx button and delete the contents.
    3) Click on the "variable" button on the bottom right of the fx window, select "repository variable" and then type the name of the repository variable you created.
    4) Go to the Narrative View.
    5) Type the text, "Data extracted as of" and then type @1.
    6) Change the "Rows to display" (right-side of the Narrative View window) to 1.
    7) Add this view to your Compound Layout.

  • 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

  • Displaying a presentation variable in a certain format

    Hi Experts
    I have got presentation variable called WeekBetween, which is set by a slider (that is a dashboard prompt)
    When output the value of this variable (in a textbox @{WeekBetween}) it says *'1,53'*
    While the values are right, i would want this value to be formatted in the following way
    *1- 53*
    Please can someone help or suggest an accurate answer
    Kind Regards
    Hiten

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    &#60;div id=custDiv&#62;@{WeekBetween}{Default Value}&#60;/div&#62;
    &#60;script&#62;
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    &#60;/script&#62;
    Let me know if this works for you.

  • Displaying Session Variable on Dashboard & creating presentation variable

    Hi.
    I read a bit more on mysupport and it seems that :xdo_user_roles somehow displayes all kind of roles not the ones that the user acutally belongs to.
    Now I wonder if I can use NQ_SESSION.GROUP in the BI Publisher data model.
    (A)I figured that I can create a "list of values" in the data model and there I can select Oracle BI EE as a data source. maybe in the repository I can create a column that holds the nqsession_groups that I then use in the data model sql. assuming I can use a list of values in the sql.
    (B) or I pass it as a parameter to the report/data modell just like a normal dropdownlist parameter (presentation variable)
    Then I tried adding a text item on the dashboard with
    @{biServer.variables[NQ_SESSION.USER.displayName]}
    or
    Session Variable My Year : @{biServer.VARIABLES['v_USER_GROUPS']} *
    BUT none of them actually display any variables. :/
    *this one I created in the repository and has the correct values                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I remove "authenticated-role" from the BIConsumer Role in EM and visit my dashboard again I can see that the user is ONLY in role "AuthenticatedUser" now I wonder why this is the only one, I created a custom role in EM and added the user to that one but it does not show :/

  • How to set a value to a Presentation Variable using GO URL?

    Hi All,
         I am working on a drill (GO URL) from Dashboard page1 to Dashboard page2.
         The problem I am facing is, I am not able to pass a value to the presentation variable through GO URL. (I have to pass "Customer Category" static
    value to The presentation variable present in Dashboard Page2 ).
         The Dashboard page2 is having a view select in which we are using presentation variable to select the report based on the value selected in
    View Select.
         For example: If the user selects "Customer Category" value in View select and clicks on GO button Customer Category report will show the out put.
         When i am drilling from Dashboard Page1 I have to pass a value to the presentation variable used in view select and also pass some filter condition in
         GO URL.
         Please let me know if it is feasible to pass a value to the presentation variable through GO URL in OBIEE 10.1.3.4.
         It will be greate if you can provide me with the syntax to set a value to the presentation variable of dashboard page2 through GO URL.
    Thanks and Regards,
    Sagar Vishwanathwar.

    1) You have to navigate to dashboard page, not to answer request = you have to use "Dashboard URL API" not GO URL API.
    2) On the target page, you have to place dashboard prompt, which sets required presentation variable.
    3) Refer to the target using Dashboard URL API and set filter on prompt column using URL parameters. Example: http://localhost:9704/analytics/saw.dll?Dashboard&PortalPath=%2Fusers%2Fadministrator%2F_portal&Page=page%201&Action=Navigate&P0=1&P1=eq&P2=D_TIME.YEAR_CODE&P3=%221996%22
    Do not forget to use Action=Navigate. The syntax for setting filters using url parameter is the same as for GO URL API described in Business Intelligence Presentation Services Administration Guide.
    This is the way, you can implement navigation to parametrized direct SQL reports including passing filter values...
    Regards K.

  • Presentation variable in column formula issue

    Hi,
    I'm having an issue about putting a presentation variable in a column formula. I'm using obiee 11.1.1.7.141014
    I'm adding a text in a formula column where I use two presentation variables: pPeriodo and pAno
    pPeriodo invoques the month selected in a prompt and pAno the year. I have to compare different years, so in one member I use @{pAno} when is the selected year and @{pAno-1} when is the prior year.
    The result of this (please see the header of the 2nd column):
    The problem is when Icompare to next years. So my issue happens when I do an addition to the presentation variable: @{pAno+1}
    It doesn't do the sum; it concatenates the value as you can see in the following images
    If anyone have a workaround about this, please share.
    Regards,
    Miguel

    Hi Joven
    Try @{pAno}+1 instead of @{pAno+1}
    Regards
    Rajagopal

  • Feature Request: Option to wrap static text.

    It would be really nice (in fact, demanded by my current client) to be able to have multi-line static text that appears as a paragraph. Unfortunately, static text is one-line and either stretches out the width of the entire dialog box if you let it or is truncated if you don't.
    Present work-around is to force line-breaks, but that makes for some funny looking alignment, which may not be so "funny" when you see it on the "other" platform...
    Thanks,
    Rob

    I faced the same issue today.  I discovered the "wrap" property applies to static_texts as well as edit_fields.   It doesn't appear to be documented at all in the SDK API Reference, while it is documented in the SDK Programmers Guide as applying to edit_fields but not static_texts.  Here's a test program illustrating its use:
    local LrDialogs = import 'LrDialogs'
    local LrFunctionContext = import 'LrFunctionContext'
    local LrView = import 'LrView'
    local f = LrView.osFactory()
    local text = [=[Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed feugiat quam nec mauris auctor dignissim eu sit amet sapien. Nullam scelerisque lacus libero. Donec iaculis lacinia viverra. Nulla suscipit viverra condimentum. Nam id diam metus, non ullamcorper justo. Curabitur mollis urna sed ligula molestie ullamcorper convallis nisl adipiscing. Suspendisse blandit lobortis risus non laoreet. Proin dictum, nulla a varius faucibus, enim elit pharetra tortor, a commodo mi nulla et leo. Cras in varius odio. Donec erat neque, bibendum at elementum sit amet, tincidunt a nunc. Donec tincidunt aliquet libero non vulputate. Proin eget nibh ante. Curabitur tincidunt felis quis turpis.]=]
    LrFunctionContext.callWithContext ("test", function (context)
        text = string.gsub (text, "%c", " ")
        LrDialogs.presentModalDialog {title = "Test", contents = f:column {
            f:edit_field {value = text, wrap = true, width_in_chars = 40,
                height_in_lines = 10, enabled = false},
            f:static_text {title = text, wrap = true, width_in_chars = 40,
                height_in_lines = 10}}}
        end)

  • Copy static text from one MIF documents to other MIF document

    Hi All,
    I'm trying to copy the text frames and their contents from one document to other document.
    I"m following the bellow steps..!
    1. Open Template1.mif by F_ApiSimpleOpen()
    2. Create new document called "Template2.mif" using "F_ApiCustomDoc"
    3. Import the required formats by
    F_ApiSimpleImportFormats(Template2,Template1,FF_UFF_COLOR |FF_UFF_COMBINED_FONTS |FF_UFF_COND |FF_UFF_DOCUMENT_PROPS |FF_UFF_FONT |FF_UFF_MATH |FF_UFF_PAGE |FF_UFF_PGF |FF_UFF_TABLE |FF_UFF_VAR))
    4. Read the text frames from "Template1" and create new text frame in Template2
         pgfId = F_ApiGetId(FV_SessionId, Template1, FP_FirstFlowInDoc);
         while (pgfid) {
         //     create a new text frame in Template2
              tFrameId = F_ApiNewGraphicObject(Template2, FO_TextFrame, pFrameId);
              objGraphicId = F_ApiGetId(Template1, pgfId, FP_FirstTextFrameInFlow);
         //assigning the properties of text frames
              propspdf = F_ApiGetProps(docIdfrom, objGraphicId);
              F_ApiSetProps(docIdto, tFrameId,&propspdf);
    Till this step, it is working as expected.
    Next I need to read the paragraphs of each text frame and put only static text available in the TEXT FRAMES OF Template1 in newly crated TEXT FRAMES of Template2. But ignore the variables in the text frames.
    I tried to work with the following piece of code
         doc2PgfId = F_ApiGetId(docIdfrom, objGraphicId, FP_FirstPgf);
         doc1PgfId = F_ApiGetId(docIdto, tFrameId, FP_FirstPgf);
         while (doc2PgfId && doc1PgfId)
                   F_ApiDeallocatePropVals(&propspdf);
                   tispdf = F_ApiGetText(docIdfrom, doc2PgfId, FTI_String|FTI_PgfBegin|FTI_PgfEnd);
                   tisspdf = F_ApiGetText(docIdto, doc1PgfId, FTI_String);
                   n=tispdf.len;
                   n1=tisspdf.len;
                   for(i=0; i<tispdf.len;i++){
                         ti = &tispdf.val[i];
                         tiT = &tisspdf.val[i];
                         //compare the text type and handle each text item appropriately
                         switch(ti->dataType){
                         //handle normal free flowing text
                          case(FTI_String):
                           //F_ApiAlert("In String", FF_ALERT_CONTINUE_NOTE);
                           tr.beg.objId = pgfId;
                           tr.beg.offset = ti->offset;
                           trT.beg.objId = tr.beg.objId;
                           trT.beg.offset = tr.beg.offset;
                        F_ApiDeallocatePropVals(&props);
                        props = F_ApiGetTextProps(docIdfrom, &tr.beg);
                        F_ApiSetTextProps(docIdto, &trT.beg,&props);
                        name1=(StringT)ti->u.sdata;
                        textLoc=F_ApiAddText(docIdto, &trT.beg,name1);
            //textLoc.objId = pgfId1;
            //textLoc.offset = textLoc.offset;
            //if the text string is a part of a variable then
            //it would have been taken care of so ignore it
            break;
           case(FTI_PgfBegin):
                      pgfId = ti->u.idata;
                      pgfId1 = tiT->u.idata;
                      propspdf = F_ApiGetProps(docIdfrom, pgfId);
                      F_ApiSetProps(docIdto, pgfId1,&propspdf);
                       break;
           case(FTI_PgfEnd):
                 pgfId = 0;
                 pgfId1= 0;
                 textLoc.offset=0;
                 bPgfalive = False;
                 break;
         //Get ID of next pgf in frame
    where am I going wrong? Is there any simple way of doing it?
    How do I go ahead with this? Please help..!
    Thanks,
    Basav

    Hi Michael,
    Thanks for quick reply..!
    There was a piece of code which validates whether the text frame I needed exists or not. I intentionally removed so as to not to confuse the reader.
    Let me give you a clear picture that what I want to do..!
    I've a MIF file and XML file that has the details of text frames and its contents in the MIF. XML looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <MyProjectXML>
    <TextFrame frame="fr18111dd"><P>Basava</P></TextFrame>
    <TextFrame frame="fr224362cc"><P>Prabhu</P></TextFrame>
    <TextFrame frame="fr2547"><P>5 Year Performance (US Dollar)</P></TextFrame>
    </MyProjectXML>
    My MIF file has more than 50  named text frames. Some of them are in XML file, like - fr18111dd, fr224362cc,fr2547. These text frames have the static text,variables and tables. [ Tables I've kept it aside to work later for now]
    What I need -
    Need a MIF file that has frames available in XML file and replace the variables with the values given in <P> tag and keep the static text as it is.
    I'm trying the other way now, Open the MIF file and delete all the text frames except the frames mentioned in the XML file and save as new file.
    Let me know if I'm doing anything wrong here..! That will save my time and effort.
    Am I clear on my query? and what I wanted to achive ? Let me know otherwise..!
    Thanks,
    Basav

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello,
    How can subtract a day from the presentation variable - @{system.currentTime}
    I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it?
    Thanks.

    Hi,
    Did you try the steps which I mentioned above. You can use TIMESTAMPADD function in many places in your report but I think not in title section of the title view.
    Also you can try using Narrative view instead of title view to achieve this. Follow below steos:
    * Pull another column in the report and change its fx to TIMESTAMPADD(SQL_TSI_DAY, -1, @{system.currentTime})
    * Now go to the Narrative view and add the below text in Narrative section of the view.
    Active Person Report as of @1
    Here @1 assuming the new column created is placed before all the columns in the request.
    * Also set the 'Rows to Display' as 1.
    * Delete Title view from the report and this narrative view on top of your report.
    Hope this helps.
    Thanks

  • Presentation Variable name being passed as value

    I have a requirement where value needs to be checked against two separate fields for filtering (as OR statement). But there should be ability to filter on these fields separately as well.
    Dashboard prompt:
    Province [Multi search]
    State [Multi search]
    Combined search (Province OR State Fields) [Edit Box] --- used to pass presentation variable
    Report filter:
    Province is prompted
    AND State is prompted
    AND Province is @{presentation_variable} (no default)
    OR State is @{presentation_variable} (no default)
    But if the text field with presentation variable in not used to filter, then the report shows no result because the presentation variable name itself is taken as a value. Any solution how this can be done making sure that if province only is searched for then the presentation variable is not passed as value and the query returns no results?
    Thanks everyone.

    Thanks Rachit, that helps. For the scenario mentioned initially, even this works:
    Province is @{presentation_variable} (no default)
    OR State is @{presentation_variable} (no default)
    But the challenge is if I want to add another filter (like country) also as a filter. When users filter only on country, then the report shows no results because no value has been passed to the presentation variable and the query generated uses presentation variable name as the value!

  • Static Text in flash 8 disappears

    Here's a weird one for you. I have a site built in flash 8
    with some static
    text in there. It's in Verdana, no Kern set on it and is
    Anti-Aliased for
    animation, whilst this appears to work on every test machine
    and clients
    machines we've had reports from 2 users that the Static text
    doesn't appear
    at all. None of the text is sitting under masks or any other
    object, the
    dynamic text appears to be displaying just fine. They've
    installed the
    latest flash version and are running on IE6.
    I've searched through google groups and have found a couple
    of things that
    sound similar but it appears that they just changed the text
    to use the
    device fonts. I really don't want to have to do that if I can
    help it,
    especially as this in theory should be working. Anyone else
    had a problem
    like this, is there a bug in Flash for certain
    configurations?
    Thanks
    James

    Hey Tom,
    No, I understand what you're saying. Originally, I did embed
    the non-system font and used it on all of my static text. It worked
    great for me in both IE and Firefox, both local and live. However,
    my clients weren't getting any text at all and I have no idea why
    (they tried it on both IE and Firefox). I'm not sure what the
    differences in our browsers are as they are the same versions.
    Maybe they have special settings set up?
    As an experiment, I'm going through and changing my static
    text from the embedded font to a system font. I did one section of
    the site, made it live, and asked the client to test and see if
    they could see text. They said they could. So, for some reason
    their browsers aren't liking the original embedded font I used. As
    I said in an earlier post, I know my original font embed worked
    because I tested it on a computer that didn't have the font
    installed. So, I don't know where the problem lies for the client.
    The client has an important meeting in 2 weeks and needs to
    present what I've made so far. So, until I can figure out what's
    going on with the client's browsers, I'm opting to change the font
    over to a system font and do away with the embedded font for the
    time being.
    However, you said:
    quote:
    If the text field is static, you need do nothing more than
    choose a non-device font.
    Do you mean I don't need to embed a font for static
    text?

  • Displaying a presentation variable in a title view

    Hello,
    I've created a title view with the title:
    Category Sales Last 12 Months for @{CountryRegion}
    I also have a dashboard prompt that sets the presentation variable. However, the first time you run the dashboard page the title displays:
    Category Sales Last 12 Months for @{CountryRegion}
    instead of:
    Category Sales Last 12 Months for
    yet when the prompt is set within the dashboard to a value (e.g. Europe), the title correctly shows:
    Category Sales Last 12 Months for Europe
    I thought the title was supposed to not display the presentation variable definition at all if it is not set.
    Please can someone provide some pointers on how to get the title to correctly show the value of the presentation variable in the title whether the value is set or not.
    Cheers,
    John

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    &#60;div id=custDiv&#62;@{WeekBetween}{Default Value}&#60;/div&#62;
    &#60;script&#62;
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    &#60;/script&#62;
    Let me know if this works for you.

Maybe you are looking for