...
在Smartbi中支持通过form表单的形式来提交post请求的方式来进行集成,
代码块 | ||
---|---|---|
| ||
<div style="width:100%;height:100%;">
<iframe id="myFrame" width="100%" height="100%" allowTransparency name="myFrame"></iframe>
</div>
<!-- 表单部分,在表单中设置post请求提交的地址、参数、参数值等信息 -->
<form id=submitForm method=post action=http://localhost:18080/smartbi/vision/openresource.jsp target="myFrame">
<input id="resid" type=text name=resid value=I402881e5019608c408c4fb7801960e2ec9b42d3d><br>
<input id=refresh value=true type=text name=refresh>
<input id=showtoolbar value="true" type=text name=showtoolbar>
<input id=showPath value=false type=text name=showPath>
<input id=showPath value=false type=text name=showPath>
<input id=paramsInfo type=text name=paramsInfo value='[{"name":"发货区域","value":"东北",displayValue:"东北"}]'>
<input type="text" name="param.发货区域" value="东北">
<input type="text" name="paramDisplay.发货区域" value="东北">
</form>
<script language='javascript'>
var submitForm = document.getElementById("submitForm");
// 新窗口打开
//submitForm.target ="_blank";
// 提交表单
submitForm.submit();
</script> |