Showing posts with label hyperlinks. Show all posts
Showing posts with label hyperlinks. Show all posts

Friday, June 13, 2014

OBIEE 11g : Display Image / Using Image as a Link on Dashboard Page

Display  Image:

We can add an image or image link on dashboard page by making use of HTML <img> tag.

Syntax for image tag is,

<img src="URL" alt="Some_Text" width="x" height="y">

Src is the location of image.
In case of OBIEE we will be storing image on server folder.
To fetch this image we need to give path of image location.

In this example I will be storing image on Custom skin folder created for Custom Skin.
To understand Custom Skin Folder creation please refer,

Deploying & Developing a Custom Skin Part 1


I have copied my image i.e. ‘welcome.jpg’ at following location in ‘analyticsRes’ custom skin folder,

<instance>/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/analyticsRes/s_TestSkin/b_mozilla_4

Now to fetch this image in we need to add text view to dashboard page and select ‘Contains HTML markup’.
Then use following code,

<img  src=”/analyticsRes/s_TestSkin/b_mozilla_4/welcome.jpg"  alt="WelcomeImg"  width="400"  height="200">

We can use this path from ‘analyticsRes’ as we have deployed this custom folder in fusion middleware.
This will display image on your dashboard page.

Using  Image as a Link on Dashboard Page:

Similarly to use  image as a link we can use following code,

<a href="http://slc02oky.oracle.com:7780/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FPrashant%2FTest%2FDashboard""><img  src=”/analyticsRes/s_TestSkin/b_mozilla_4/welcome.jpg"  alt="WelcomeImg"  width="400"  height="200">

Thus every time user clicks on this image he will get directed to Test Dashboard.

Similarly we can also navigate to other dashboard objects/pages/analysis/webpages just by changing path as per requirement.


Relevant Posts:

Thursday, June 12, 2014

OBIEE 11g : Using HTML Hyperlinks (Links) with OBIEE 11g

Using HTML Hyperlinks (Links) with OBIEE 11g

 

We can make use of HTML Hyperlinks to put links on dashboard.

Links allow users to click their way from page to page.

The HTML <a> tag defines a hyperlink.
A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document.

When you move the cursor over a link in a Web page, the arrow will turn into a little hand.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

Syntax for HTML hyperlink is,

<a href="url">Link text</a>

For example:

Add text view in OBIEE and put following code in text view. Select ‘Contains HTML markup’

<a href=”http://bisimplified.blogspot.com”>Visit BI Simplified</a>


It will create hyperlink on dashboard as follows,

                          Visit BI Simplified

This link will open target web page within same link.

To open target page in new tab we can use following code,

<a href=”http://bisimplified.blogspot.com” target="_blank">Visit BI Simplified</a>

The link generated will be as follows,

                          Visit BI Simplified


You can allocate this link on dashboard as per your requirement using <div> tag.