Hi,
Is there a way to specify the CurrentWebServer in the Opendocument function within a crystal report. We are using the link as
http:// :8080/OpenDocument/opendoc/ logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
When promoting this to Prod we had to manually update the devwebserver to Prodwebserver.
I did create a Repository custom function as
CurrentWebServer = http:// :8080/OpenDocument/opendoc/ logonVintela.do?
in each of the environment and added it to the report and used this instead of the 1st URL. But when this report is promoted to prod the report custom function still reads the formula from the Stage. I had to manually go in the report and re add the custom function from the repository. Bottom line is this approach is not working for us.
I know that it will pick up the currentwebserver if we write the formula as
/OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
but this will not work for us either as this will not work if it viewed from pdf or excel. Please let me know if there a working solution for this.
It is common problem.
Development: http://<
dev
webserver>:8080/OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
Quality: http://<
qa
webserver>:8080/OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
Production: http://<
prod
webserver>:8080/OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
If you mentioned your environment name, you have to do as stated after migration.
To avoid this:(as posted), instead of using <server name> just leave it as dots...
http://../OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=23165
Which should work on all environments.
Thank You!!
instead of hard coding the webserver name use two dots .. it automatically takes the webserver it is running on
eg:
http://../OpenDocument/opendoc/logonVintela.do?appKind=InfoView&sRefresh=Y&isApplication=true&sType=rpt&iDocID=
Add a comment