Pages

Friday 5 July 2013

OBIEE Content in an IFrame

We had a customer who wanted a dashboard to appear on the departmental display. This display rotates through several URLs in turn displaying each for 30 seconds and then the next one.

So a dashboard is an ideal candidate for inclusion in this display.

Unfortunately though the software used to display content embeds the content in an IFRAME.

A quick test with a bit of static HTML

<html>
<head>
<title>iFrame test</title>
</head>
<body>
<iframe src="http://myserver:9704/analytics" height=500 width=500></iframe>
</body>
</html>

Gives you an error which boils down to OBIEE doesn't work inside an IFRAME.

Fortunately by changing a few configuration settings you can be up and running.

Firstly in the instanceconfig.xml located in
[OBIEE_HOME]\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\


add the following line 
<Security>
<InIFrameRenderingMode>allow</InIFrameRenderingMode>
<!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
<ClientSessionExpireMinutes>210</ClientSessionExpireMinutes>
</Security>


Secondly in the web.xml file located in [OBIEE_HOME]\oracle_BI1\bifoundation\web\app\WEB-INF\
add the following snippet before the <login-config> node

 </servlet-mapping>
   <context-param>
   <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
   <param-value>never</param-value>
   </context-param>
    <login-config>

Thirdly restart opmn.

Finally, clear your browser cache or you will continue to get errors.

There should now be no problems with the IFRAME and we can add a list of GO URLS to the display rotator.

1 comment:

  1. TIP#10: See when college students last logged in to Canvas.

    ReplyDelete