cognos 的URL 参数问题
(2009-12-22 13:52:44)
标签:
it |
1、cognos 参数中要将 JSP 页面格式设置为UTF-8形式,自己在转码的操作没有成功,比如
String report_urla = new String(report_url.getBytes("UTF-8"),"GBK");
2、url 路径要注意设置成功
3、理解以下内容很重要
启动报表的方法有两种:
1:通过url的方式:
http://server/cognos8/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool=CognosViewer&ui.action=run&ui.object=/content/package[@name='GOSales and etailers']/folder[@name='Report Studio Report Samples']/report[@name='Banded Report']
2:通过cognosLaunch函数
cognosLaunch("ui.gateway","http://server/cognos8/cgi-bin/cognos.cgi","ui.tool","CognosViewer","ui.action"
,"run","ui.object","/content/package[@name=\'GO Sales and
Retailers\']/report[@name=\'Banded Report\']")
<script
language="JavaScript"
src="Cognos8Gateway/cognoslaunch.js"></script>
url方式中的重点:
gateway:必须的,cognos8的网关地址,这里是http://server/cognos8/cgi-bin/cognos.cgi?.
b_action=xts.run:必须的,
m=portal/component_name.xts:必须的,不同的组件有不同的名称
m_object=defaultOutput(<report_search_path>):指定保存在内容存储库中的报表的路径。(这个还没确定,没看见有使用的地方,还没测试)
?b_action=xts.run&m=portal/main.xts&h_CAM_action=logonAs&CAMUsername=Administrator&CAMPassword=

加载中…