Popup window in OBIEE
We can open any sites or drill down report from our dashboard page by clicking on data value of report. Here is the original JavaScript for it…
<script language=”javascript” type=”text/javascript”>
<!–
function popitup(url) {
newwindow=window.open(url,’name’,’height=200,width=150′);
if (window.focus) {newwindow.focus()}
return false;
}
// –>
</script>
Then, you link to it by:
<a href=”popupex.html” onclick=”return popitup(‘popupex.html’)” >Link to popup</a>
Ø Now let’s implement it in our OBIEE…
- Calling any site (URL) from web by clicking on data value of report using JavaScript.
- Create report of your choice.
- Now click on Column Properties>Data format.
- Check “Override Default Data Format “and select “Custom Text Format”.
- Put following formula in “Custom Text Format” and click onOK:
@[html] “<a href=”javascript:popitup(‘http://ids-sol.co.uk’)”>”@”</a>”<html>
Note: You can put any link in popitup () function shown above. For e.g. if you want to call L2 (drill down) report in new popup window then you will have to put following formula in Custom Text Format.
@[html] “<a href=”javascript:popitup(‘http://IP address of server/analytics/saw.dll?PortalGo&Action=prompt&path=report name if has space then separated using %2F for e.g. %2Freport%2Fname‘)”>”@”</a>”
- Now go on “Results”tab and select “Static Text” view.
- Put following JavaScript in “Static Text”view.
<html><script language=”javascript” type=”text/javascript”>
<!–
function popitup(url) {
newwindow=window.open(url,’name’,’height=800,width=800′);
if (window.focus) {newwindow.focus()}
}
// –>
</script>
<a href=”popupex.html” onclick=”return popitup(‘popupex.html’)”></a>
</html>
- It will look like :
- Now remove the “Static Text”view from “Compound Layout” or you can also keep it in it.
No Comments