Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hyperlinks in WebI report ask for credentials again

Hi,

I call a WebI report using opendocument url and pass the login token so that the user doesn't need to enter the credentials. The report displays fine and works as expected.

Now this report has some hyperlinks that open another WebI report in a new window. When I click on these hyperlinks, it is prompting me for opendocument credentials. I don't know why this should happen as I have passed the token for the main report. This doesn't happen in BI Launch Pad, but only in my custom application.

The hyperlinks are nothing but opendocument url to another report, without the token parameter though. Still I believe it should use the main report BO token for hyperlinks. Am I correct?

Can anyone tell me how to prevent the login prompt for hyperlinks in WebI report?

Environment: SAP BO 4.1 SP3

Heres the code:

IEnterpriseSession sess = null;

try {

sess = CrystalEnterprise.getSessionMgr().logon(BOUsername, BOPassword, BOServer, BOAuthentication);

} catch (com.crystaldecisions.sdk.exception.SDKException e1) {

e1.printStackTrace();

}

String serSession="";

try {

//serSession = sess.getSerializedSession();

serSession = sess.getLogonTokenMgr().createLogonToken("",60,30);

//serSession = sess.getLogonTokenMgr().getDefaultToken();

} catch (com.crystaldecisions.sdk.exception.SDKException e) {

e.printStackTrace();

}

String serSesEncode = URLEncoder.encode(serSession,"UTF-8");

And the opendocument call for the main report:

<iframe id="reportFrame" src="http://<%=openDocServerName%>/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=<%=docId %>&token=<%=serSesEncode %>" frameborder="0" width="100%" height="600px"></iframe>

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question