cancel
Showing results for 
Search instead for 
Did you mean: 

BOE XI3.1 + OpenDocument + token 参数传递

eva_zhong
Employee
Employee
0 Kudos

Hi

我想通过dashboard URL button 链接到一个CR, 用了openDocument 功能, link 如下:

http://<server>:8080/OpenDocument/opendoc/openDocument.jsp?sWindow=New&iDocID=6053&isApplication=true&token=entSession

显示为500 error, 问题出在参数 token=entSession , 不加的话可以正常打开,但是要输入用户名。 entSession 是我从openDoucment.jsp 文件中找到的变量,但是应该不能这样用,

环境:

BOE XI3.1, CR 和 Dashboard 都是上传到BOE上通过InfoView 打开的, 现在的问题是登录BOE后, dashboard 可以正常打开,但是当通过dashboard中的link 打开CR 的时候要求输入用户名密码。

已经看过 但是情况好像不同, 没办法把 URL 写死z在openDocument.jsp 中。

希望大虾们帮忙,有什么解决方法呢? 谢谢先~

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>

> Hi

> 我想通过dashboard URL button 链接到一个CR, 用了openDocument 功能, link 如下:

> http://<server>:8080/OpenDocument/opendoc/openDocument.jsp?sWindow=New&iDocID=6053&isApplication=true&token=entSession

>

> 显示为500 error, 问题出在参数 token=entSession , 不加的话可以正常打开,但是要输入用户名。 entSession 是我从openDoucment.jsp 文件中找到的变量,但是应该不能这样用,

>

> 环境:

> BOE XI3.1, CR 和 Dashboard 都是上传到BOE上通过InfoView 打开的, 现在的问题是登录BOE后, dashboard 可以正常打开,但是当通过dashboard中的link 打开CR 的时候要求输入用户名密码。

>

> 已经看过 但是情况好像不同, 没办法把 URL 写死z在openDocument.jsp 中。

>

> 希望大虾们帮忙,有什么解决方法呢? 谢谢先~

结合你之前提出的新窗口打开的问题,以及这个登录问题,如下:

1. 在Xcelsius中给URL Button设置u201C本窗口打开u201D

2. 在opendoc url中去掉isApplication=true,保留sWindow=true

3. 将swf导出至BOE,并保证opendoc的url中的机器名和BOE的机器名相同

4. 用opendoc或者infoview打开这个swf, 则可实现单个新窗口打开opendoc并且不需要另外登录

该方法存在的限制:点击URL Button后,swf会重新load

-


http://byinsight.com

Answers (3)

Answers (3)

eva_zhong
Employee
Employee
0 Kudos

Hi,

谢谢~

问题解决了,是link 不对。

1. 去掉了token参数

2. 把opendocument的server名称和打开BOE的link的server名称一致,要么都用IP,要么都用主机名

  • isApplication=true, 是在openDocument.jsp文件中找到一段代码,试了下发现可以用这个方法暂时解决openDocument refresh原窗口或者打开两个窗口的问题。 但是不知道会不会引起其它问题... ...

sunny_zhang
Active Contributor
0 Kudos

其实还有其他的方法可以用:

法一:让dashboard超链到;写这个jsp(假设叫test.jsp)而不是你现在的opendocument URL,然后让test.jsp再去打开opendocument URL.

法二:由于你打开的是CR,可以不用opendocument URL,使用URL reporting for Crystal Reports。

后一种URL中可以指定登陆BOE的用户名和密码,不会有token的问题。

sunny_zhang
Active Contributor
0 Kudos

在openDocument链接中去掉&token=entSession,再试试看?