on 03-15-2015 8:30 PM
I have a hyperlink inside Crystal Report A which point to Crystal Report B
The link is "http://bi-test.net/BOE/OpenDocument/opendoc/openDocument.jsp?sDocName=Crystal Report B"
This kind of harcoded link creates issue when migrating object from DEV to TEST to PROD.
I have to manually update the link each time.
Can i dynamically fetch the host name 'bi-test' on which the server is running and use it somehow to build this link?
I am using CR2013
Vishal
Hi Vishal,
Use relative path like this one:
//BOE/OpenDocument/opendoc/openDocument.jsp?sDocName=Crystal Report B
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this but I am getting error - remaining text doesn't appear to be part of formula
//BOE/OpenDocument/opendoc/openDocument.jsp?sDocName=Crude_GathHand_Rep_Excel_Export&sPath=[GIS],[TRC6],[D04],[INTERNAL],[Metrics]
& '&lsS' + urlencode('RPT_PERIOD',2) + '=' + urlencode({?RPT_PERIOD},2)
& '&sOutputFormat=E'
& '&sWindow=New'
old working formula
& '&lsS' + urlencode('RPT_PERIOD',2) + '=' + urlencode({?RPT_PERIOD},2)
& '&sOutputFormat=E'
& '&sWindow=New'
You're missing the single quotes around the path:
'//BOE/OpenDocument/opendoc/openDocument.jsp?sDocName=Crude_GathHand_Rep_Excel_Export&sPath=[GIS],[TRC6],[D04],[INTERNAL],[Metrics]'
& '&lsS' + urlencode('RPT_PERIOD',2) + '=' + urlencode({?RPT_PERIOD},2)
& '&sOutputFormat=E'
& '&sWindow=New'
-Abhilash
doesnt work. on lick of hyper link I get below link is generated
the host name is not captured
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.