crystalvictim
Programmer
Hello there,
we want to create a csp page which displays the last instance of a report specified by its number/ID (in fact, we have to as there's no other way to accomplish this...).
I downloaded the get_instance sample code provided by the knowledgebase and quite quickly succeeded in querying the CI_INFOOBJECTS container and retrieve the last instance's ID.
Now here's my problem: As I understand, the viewrpt.cwr can only be used when displaying an .rpt-file. I get an error (concerning the 'invalid' pdf-format) when trying to use this with an instance that has been created in acrobat format.
So I figured out that I'll obviously have to use 'infoobject.cwr' instead (which unfortunately seems to be poorly documented). It is used in showreportscript.js, so I can see how to get the last instance's ID, but I have no clue how to cope with the parameter WCSID.
This is said to be the session's logon token. Well, I've created such a token according to the above mentioned sample csp, write it into a cookie and retrieve it, but it simply doesn't work. The token's structure also seems to be quite different from the numeric-only format the WCSID in ePortfolio has.
So after having spent almost 2 days and not getting any closer to identifying the problem, my only hope is - as usual - that it's only one or two lines of code that I am lacking and that these might be provided by someone who has already managed to create a similar page.
By the way, we're using CR/CE8.5.
Thanks in advance,
Frank
we want to create a csp page which displays the last instance of a report specified by its number/ID (in fact, we have to as there's no other way to accomplish this...).
I downloaded the get_instance sample code provided by the knowledgebase and quite quickly succeeded in querying the CI_INFOOBJECTS container and retrieve the last instance's ID.
Now here's my problem: As I understand, the viewrpt.cwr can only be used when displaying an .rpt-file. I get an error (concerning the 'invalid' pdf-format) when trying to use this with an instance that has been created in acrobat format.
So I figured out that I'll obviously have to use 'infoobject.cwr' instead (which unfortunately seems to be poorly documented). It is used in showreportscript.js, so I can see how to get the last instance's ID, but I have no clue how to cope with the parameter WCSID.
This is said to be the session's logon token. Well, I've created such a token according to the above mentioned sample csp, write it into a cookie and retrieve it, but it simply doesn't work. The token's structure also seems to be quite different from the numeric-only format the WCSID in ePortfolio has.
So after having spent almost 2 days and not getting any closer to identifying the problem, my only hope is - as usual - that it's only one or two lines of code that I am lacking and that these might be provided by someone who has already managed to create a similar page.
By the way, we're using CR/CE8.5.
Thanks in advance,
Frank