crystalvictim
Programmer
Hi,
using CR/CE8.5, I want to enable users to view a report's last instance(s) by using a custom csp-page.
This page has to handle logon functionlity (we're using secWinAD-authentification), InfoStore-queries and to display a table that contains links to the instances.
It all works fine as long as the report's instance is in rpt-format (I'm using viewrpt.cwr) - so there can't be a login-problem or something like that.
Unfortunately, many of our reports have another format (pdf, txt, doc, ...) and therefore cannot be viewed with viewrpt.cwr. I figured out, that obviously I'll have to use INFOOBJECT.CWR.
Despite many days of desparate trying, I haven't succeeded yet... So this is what I found out so far:
INFOOBJECT requires a parameter called WCSID (this seems to be neccessary for authentification issues). So I took a look at the samples provided within the CE_SDK-helpfile (creating a logontoken, storing the token in a cookie, retrieving the cookie). Nevertheless, it simply doesn't work. I get a message telling me that I'm not authorized...
So I tried the following: I log onto our Crystal Management Console via Launchpad and then (in a new window) click on the link created by my custom page: This works. Moreover, it does no longer require WCSID..... (by the way: the WCSID I get by creating the logontoken is completely different from the WCSID that is displayed when right-clicking on a report instance. It's not only numbers but servername and domain information followed by an alphanumerical code).
Next, I tried to log onto ePortfolio instead of Management Console and run the same test. This time, the result was quite different: Again, I do not seem to have the neccessary authorization :-(
As I have no idea, what I'm doing wrong, I hope you can help me.
Thanks in advance!
using CR/CE8.5, I want to enable users to view a report's last instance(s) by using a custom csp-page.
This page has to handle logon functionlity (we're using secWinAD-authentification), InfoStore-queries and to display a table that contains links to the instances.
It all works fine as long as the report's instance is in rpt-format (I'm using viewrpt.cwr) - so there can't be a login-problem or something like that.
Unfortunately, many of our reports have another format (pdf, txt, doc, ...) and therefore cannot be viewed with viewrpt.cwr. I figured out, that obviously I'll have to use INFOOBJECT.CWR.
Despite many days of desparate trying, I haven't succeeded yet... So this is what I found out so far:
INFOOBJECT requires a parameter called WCSID (this seems to be neccessary for authentification issues). So I took a look at the samples provided within the CE_SDK-helpfile (creating a logontoken, storing the token in a cookie, retrieving the cookie). Nevertheless, it simply doesn't work. I get a message telling me that I'm not authorized...
So I tried the following: I log onto our Crystal Management Console via Launchpad and then (in a new window) click on the link created by my custom page: This works. Moreover, it does no longer require WCSID..... (by the way: the WCSID I get by creating the logontoken is completely different from the WCSID that is displayed when right-clicking on a report instance. It's not only numbers but servername and domain information followed by an alphanumerical code).
Next, I tried to log onto ePortfolio instead of Management Console and run the same test. This time, the result was quite different: Again, I do not seem to have the neccessary authorization :-(
As I have no idea, what I'm doing wrong, I hope you can help me.
Thanks in advance!