Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Tooltip - Correction in HTML code

Received Response
71
Views
9
Comments
User_E9OMM
User_E9OMM Rank 4 - Community Specialist

Hi !

Please have a look at below column formula picture -->

OS = Windows 8

OBI - Ver 12.2.1.0.0

Browser - Mozilla and Chrome

[Data format = HTML in Column properties ]

pastedImage_2.png

With this I was able to display a Team Number when I hover a mouse over Team (Name)

ex - I hovered my mouse over Team USA

pastedImage_3.png

However I want to make some changes in the verbiage of the tool tip.

It should display me like this --   Team ID is 11  - (at least)

( or Team ID of USA is 11) -> This will look nice )

For some reason I am not able to achieve this, some mistakes that I am making at HTML code.

Can anyone please help ?

Regards

AM

Answers

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    <span title="Team ID of USA is ' || "Cric Team"."Team ID" || '">' || ....

  • User_E9OMM
    User_E9OMM Rank 4 - Community Specialist

    No  :-)

    But below is going closer

    pastedImage_0.png

    pastedImage_1.png

    Regards

    AM

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    "No"? ORLY?  </sarcasm>

    '<HTML><span title="The parent Brand name is ' || "Products"."Brand" || '">' || "Products"."LOB" || '</span><HTML>'

    pastedImage_0.png

    That bit above is precisely what I just proofed in SampleApp.

  • User_E9OMM
    User_E9OMM Rank 4 - Community Specialist

    Super !!!!

    Thank you..

    It worked.

    pastedImage_0.png

    Though I have just compared/copy-pasted, for my understanding , I want to know - the meaning of quotes

    ( I am assuming they are single quotes ..:-)  Sorry but Can you please explain ? :-)

    pastedImage_1.png

    Regards

    AM

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    The first one already would have worked. That's why I posted code and not screenshots like you. Makes it a lot easier to read and parse.

    1877648 wrote: for my understanding , I want to know - the meaning of quotes

    Ok so I guess that means you didn't write any of this code. Single quotes - i.e. ' - are string terminators telling the interpreting engine when a string starts and when it ends.

    If you try to modify someone else's code or copy+paste stuff from websites/blogs try to understand what it is they are doing rather than just randomly changing things.

  • User_E9OMM
    User_E9OMM Rank 4 - Community Specialist

    Agreed. But frankly speaking I am still not clear with the quotes that I have used here. I am trying to understand them.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    ' either starts or ends a string

    " is an indication for Oracle BI to interpret sth as a column. Hence the "Dimension Name"."Column Name" notation.

    You are concatenating things because the browser needs to be handed a valid piece of HTML code since the browser doesn't know how to interpret "Dimension Name"."Column Name". It would just be text to it.

    So your formula has to produce sth which in effect reads to the browser as

    <HTML><span title="Team ID is 42">Earth<span><HTML>

  • User_E9OMM
    User_E9OMM Rank 4 - Community Specialist

    Okay, I got it now. That is very well explained !

    Thank you. This is really helpful.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    If you get a chance install SampleApp so you can have a look at a working, running application which showcases just about any OBI functionality you could think of with real examples:

    http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html