把BIEE报表 嵌入到 web 项目中,我用的是 <iframe> 标签
直接引用的话,会遇到一个错误,
refused to display “xxxxxxxxxxxxx....”
in a frame because an ancestor violates the following content security policy directive :"frame -ancestors 'self'"
这是因为 BIEE 自己的内容安全策略设置,不允许 被嵌入
这时候需要登录到 BIEE 安装的 服务配置路径
$bieehome\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfig.xml
(不同版本的biee 路径可能不同,但配置文件的名字一般相同 instanceconfig.xml )
在security标签中添加
<InIFrameRenderingMode>allow</InIFrameRenderingMode>
修改完之后重启bi服务,再次用iframe 标签访问,应该可以正常访问了 。
允许访问后,就需要设置 src 了 ,
需注意一点,好像是12C的biee还是所有biee忘了,需要设置关闭 sso的集成功能,不然不是别url中的用户名密码。
仪表盘页
BaseURL:http://ip:port/analytics/saw.dll?
类型:Dashboard
路径:portalpath=
其他参数:NQUSER=/NQPASSWORD……
各个参数用&符号链接,如下
http://ip:port/analytics/saw.dll?Dashboard&portalpath=*******&NQUSER=*****&NQPASSWORD=*****
类型 Dashboard
参数 cmd=go
portalpath=路径
page=页名称
报表
BaseURL:http://ip:port/analytics/saw.dll?
类型:go
路径:path=
其他参数:NQUSER=/NQPASSWORD……
各个参数用&符号链接,如下
http://ip:port/analytics/saw.dll?go&path=*******
可选参数:
&NQUSER=
&NQPASSWORD=
&option=x
X可以是下面的一个或多个: m = Modify Request 修改请求 f = Printer Friendly 友好打印机 d = Download to Excel 下载到excel r = Refresh Results 刷新结果Example: saw.dll?Go&Path=/Shared/Test/SB2&Options=md