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.
<div id=custDiv>@{WeekBetween}{Default Value}</div>
<script>
var i = document.getElementById('custDiv').innerHTML;
document.getElementById('custDiv').innerHTML= i.replace(","," - ");
</script>
Let me know if this works for you.

Similar Messages

  • How can i display the presentation variable in my reports

    Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data.
    I use to Select the Values From my prompt, and it shows the Reflection of Presentation Variable on my Answers Report. but i cannot see the Reflection of data on my Publisher Report Please any One Can help me with this.

    Removing '' does not work it given the following error
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)"
    and by adding space you mean that I use it as '@{ BbranchCode}'?
    What I am doing at the moment is
    1. Write the given query in oracle BI Answers.
    2. Made a dashboard prompt in Answers.
    3. Made a report in dashboard using the Answers report and the dashboard prompt.
    Up till this step it works perfectly fine and the data displayed in manipulated on the basis of the values selected in the prompt.
    4. Now what I want is to display this report in Dashboards using oracle BI publisher. For that I use the template builder provided for microsoft word.
    5. I login to that add-on, open the answers report where I can see the field in the rowset. I select that field and save the template.
    6. I open the oracle BI publisher and make a new reprt with data model of the answer's report and Layout of the one I just created.
    7. I open the dashboard and put in the BI publisher report in the same page in which the asnwers report and the prompt was.
    8. Upon changing the values of the prompt the report in the answers is still getting manipulated but I am not able to see its reflection of the BI publisher report.
    The thing is that I am currently using this presentation variable to manipulate my reports in dashbords using dashboard prompts. The report is built in oracle BI Answers and it is working perfectly fine with it. Now when I use the template builder for Microsoft Word and open the template with the answers's report of this query I see the field in the row set but when I display the template in the dason the bases of this presentation variable the report in the oracle BI Answers is getting updated when I change values but when I use the template builder for microsoft word the the field is being shown in the row set.

  • 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.

  • Presentation variable(Date) in German Format

    Hi,
    I like to know whether it is possible to use date(prompt) in German format.
    e.g., We need to filter out the date(06.01.2009) which is given in Dashboard prompt as a Presentation variable.
    The date which we have given in prompt should be accessed by reports to perform some calculations and return back the calculation values.
    As we have tried the presentation variable(date) in US Format,it is working fine.
    Regards,
    Sakthi

    Hi kishore,
    I am not clear with the above mentioned forum link.
    We are using presentation variable for dynamic calculations inside the report.
    Suppose if we are giving date for dynamic calculation,as far as we are using this format (01.Jan.09) and convert the above format in required as used for calculations.
    The problem comes when german date format(01.Dez.2008) is given in prompt,it will throw an error.
    Because both German and US will have January & Januar Jan(First 3 letters as same) but when it comes for some months like December(Dezember(German)),we cannot convert into required format.
    Is there any solution for the above issue.

  • Presentation Variable - Display 'All Values' in Report Title

    If I create a Dashboard Prompt and then set it equal to a Presentation Variable, I then display this Presentation variable in the report title. For the Dashboard Prompt I allow them the 'All Values' choice, in fact, this is the default.
    The issue is displaying this in the Report Title, when it is 'All Value' nothing is display in the title, when they select a value such as 'Region D' then it works and this value will dispaly.
    I looked at the documentation and it says you can use a default value, however, setting up that still does not work. It still is blank.
    Has anyone seen this issue or know of a workaround? I'd like to have something like 'All Vales' display or is there a condition I could write to set this.
    Thanks

    Hi Guys,
    I have did the following in order to achieve your requirement:
    As usual, create a request with a column prompted and a dashboard prompt containing that column and set the Presentation Variable (ex: varDept)... bla bla..
    Placed them on the Dashboard to generate your issue, discussed...
    Now, what I have did is:
    1. Created one more Request with the column used on Prompt and specified the Formula to it as:
    CASE WHEN '@{Dept}'||'A'='A' THEN 'All Departments' ELSE '@{Dept}' END
    Note: Take 2 same columns (and hide one) because we are using above formula which does not contains the Column from any table.
    2. Created Narrative View and referenced the above Column.. @2 (in my case).. and specify 1 in 'Rows to Display' field. Do the formatting as required viz., specifying Font size, family....
    3. Place this request in between the Prompt and First Request..
    Now, you can able to see 'All Departments' if 'All Choices' is selected.
    Hope this idea will helps you guys..
    Regards,
    -Vency

  • Presentation Variable in column heading

    Hi All,
    i have to use presentation variable in column heading. I can use it like @{presentation_variable} . I need to use @{presentation_variable}+15 in column header. what can i do for such a requirement. for example i have to display between 20 to 30 days in column header... 20 will be passed through presentation variable and i need to add 10 for displayng 30.
    thanks in advance for any help and any help will be appreciated..

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    Thanks
    Deva
    Edited by: Devarasu on Nov 17, 2011 3:03 PM

  • OBIEE 11g:  Use presentation variable in Column Heading

    Hi everyone,
    I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
    I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
    That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
    Is there anyway to get a variable in the column heading?
    Thanks!
    -Joe

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Presentation variable in column name

    Is there any way to add in column name presentation variable?
    Example
    *2007* =tmp_2ybefore
    *2008* =tmp_ybefore
    This variables are defined in prompt
    Sale *2007* -- Sale *2008*
    1,22------------2,86
    4,44------------3,29
    Edited by: Micek on 2009.04.10 09:15

    hi
    check this...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    but it has its own disadvantages.... see

  • How to display presentation variable in a column

    Hi all....I have to display presentation variable in a column...
    I tried placing @{variable_name} in column formula..
    But it is displaying a value 0 ..where the variable carries a date value.
    Any suggestions?

    Take a look at this blog: http://gerardnico.com/wiki/dat/obiee/presentation_variable
    Try it out by providing a default format.
    Thanks,
    BIPuser

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view.
    i want something like "the date being used is @{indate} for month end"
    Also date format needs to be dd.mm.yyyy ... its currenty being displayed as yyyy/mm/dd .. I dont want to add the columns in my report and hide them as there seems to be a performance lag when i do that.
    Any ideas .. Java gurus out there.
    I have tried @{indate}[dd.mm.yyyy] .. but that dont work.
    Cheers
    Jenny
    Edited by: user5470064 on Aug 18, 2011 9:58 AM
    Edited by: user5470064 on Aug 18, 2011 9:59 AM

    Here you go...
    I tried in my machine and its working great..
    In Answers--> in Criteria TAB, In the column's fx use below formula...
    case when 1=1 then EVALUATE('TO_CHAR(%1,%2)' as varchar(20),date '@{pv_date}{1998-07-05}','dd.mm.yyyy') else "ORE Time Dim"."Mnth Name" end
    pv_date is the presentation variable and
    For "ORE Time Dim"."Mnth Name" use any varchar datatype column...
    Hope it helpful...
    Thanks
    Ashish Gupta

  • Formatting date of Presentation Variable in Report title

    Hi
    I have the following presentation variable, @{PR_WE_DATE}{Week End Date}, in a report title. However the date format shown in the title is different from the format in the prompt.
    In the report title the date format is YYYY-MM-DD however I want to display it as DD_MM_YYYY
    Can anyone let me know if it possible to format the date format for a presentation variable?
    Regards
    A

    I've tried this and all this output to the title is 2009-12-03[DD_MM_YYYY]
    Any other suggestions? Maybe I can change it when I set the variable in the prompt, did try {variable}[DD_MM_YYYY], in the prompt but it didn't work

  • Presentation Variable Formatting in Report Title

    I have populated 3 presentation variables via a dashboard prompt. I also display their values in the report subtitle, but I did not expect the following format in the display:
    from TIMESTAMP '2009-10-19 00:00:00' to TIMESTAMP '2009-10-25 00:00:00' for Abilene
    The dates appear formatted as 10/19/2009 and 10/25/2009 in the dashboard prompt which is how I want them formatted in the title. Where is this subtitle formatting originating? So, I can reformat it.
    Edited by: Bob from Austin on Oct 26, 2009 11:28 AM

    Hi.
    I suggest you to read this first:
    How to change date format mask in date dashboard prompts - drop-down list and calendar
    http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html
    On the end of this post is a explanation of date format and presentation variable in the title:
    And you can find a complete example here:
    Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
    http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
    Before everything customize instanceconfig.xml, change datatype of TABLE.COLUMN in the physical layer to DATE and keep on eye if you are using repository variables as default values to dashboard prompt, which datatype they have, character, date or timestamp, this can cause problems. That's explained in the posts above.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Server and Presentation Variables and Displaying in Dashboard Report

    Hello I am running into dead ends trying to get what seems a simple request implemented. The user would like to be prompted for a Date range and have the dates they select displayed in the Title of the report, they also would like the default data set returned be the prior month (so not all data is returned when they initially run the Dashboard)
    I have a Dashboard prompt where the user is prompted for a Date Range (Date column). My first issue was being able to display the Date range in the title. I used the below post from Venkash
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
    I set the Case statements in the Dashboard prompt to equal then passed them to a Presentation variable. I then used these to be displayed in the Title of my Answers report.
    The issue now is automating prior month, I was informed I would have to set up a Repository Variables to initialize two columns - one bringing in Prior Month First Day and one bringing in Prior Month Last Day. I then set these as the defaults in the Dashboard Prompt.
    This works, however, my problem now is when the values are displayed in the report initially, they have the value of TimeStamp '01-01-2008 00:00:00'. When I put in values in the Dashboard Prompt and hit go the values are replaced correctly with whatever I put in - 1/1/2008.
    I assume the TimeStamp shows because of the initialization I am doing in the repository, I don't see any way of changing this so it reflects just the date, I am using the sysdate in the formula on the repository - I tried converting to_char first setting the format then converting back to Date. But still no luck.
    Has anyone else encountered this? Or am I even going about it the wrong way? Sorry for the long post, I look forward to any input, thanks!!!

    No it errors out when I try to Cast the server variable as a Date in the Dashboard Prompt interface.
    The variable I created in the repository (Server/Dynamic) has the formula:
    SELECT Add_Months(TO_DATE((to_char(sysdate,'mm')) || '/' || '01/' || to_char(sysdate,'YYYY'),'MM/DD/YYYY'),-5) from dual
    This is set up with an Initialization block that when I first run the report it displays in the title
    TIMESTAMP '2007-10-01 00:00:00'
    This will display no matter what I change the Initialization block to (01, ab, etc) so I guess it is something from the formula.
    Now when a user does enter a value into the prompt box and hits GO the title changes to reflect a date and looks great (10/1/2007), but I guess this is because it is now passing the database column value to this presentation variable.
    I assume this all revolves around the formula I am creating in the repository to return a default of 10/1/2007 so it can be displayed in the report header like that and not with the TimeStamp format above.
    I appreciate all your input, thanks again!

  • 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 display presentation variable in a narrative view

    Is there any way that we can display the prompt value stored in a presentation variable in the narrative view?

    Hi,
    use this synatx @{PRESENTATION_VARIABLE}{'Default'}
    Regards,
    Gianluca

Maybe you are looking for

  • Drag and drop doesn't work and also control C and control V

    drag and drop doesn't work and also control C and control V

  • Please make Oracle 8i for AIX available for download

    We need Oracle 8i for AIX...specifically Oracle 8.1.7.2.0 for AIX 4.3.3. We were pointed to technet.oracle.com by our Oracle representative. We found the following available:      Oracle8i Enterprise Edition Release 3 (8.1.7.0.1) for Linux (Intel), w

  • JVM patch required for DST on 10.2.0.2 RAC cluster

    I have looked all over the internet and Metalink for information regarding the JVM patching on a RAC cluster and haven't found anything useful, so I apologize if this question has already been asked multiple times. Also if there is a forum dedicated

  • Newbie - What is OO?

    Hi there. I am doing programming using Java, thanks for some help and hope to get some more! I am in semester 2 now at uni, and having a panic attack - I may fail :( The thing is, I love programming, done it for a long time, self taught and taught by

  • Exporting emails and contacts from gmail to aol

    Hello,       is it possible to export email messages from a gmail account to an aol account?    I cannot find anywhere how to do this.  Thank you,  Susan