Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax to use Opendocument

Status
Not open for further replies.

crystal28

Programmer
Oct 23, 2002
108
US
I need to call a Report when i click a Field thats displayed in the detailed section of the main report.I want to know the exact syntax to do this process.
I was told that opendocument is the command used for this,but in Crystal XI help i couldnt find any information on this function.
 
To open a seperate report either add the report in as an odemand subreport, or format a field in the main report, on the hyperlink tab select a hyperlink type of file and enter the file name of the report you require.

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
That is one way of doing it,but i want to know the syntax of Opendocument function,that is the other way to do it,to call a report that is running with the fields linked to the calling report.
 
The openDocument script is part of the Enterprise installation - BusinessObjects XI or Crystal Report Server XI. The documentation for it can be found in the java_docs.zip or com_docs.zip file which is part of the application development documentation. This is installed to the HELP\EN directory in the default installation directory. You'll find the openDocument documentation under the "Viewers" section in the URL reporting chapter.

The root of the script by default is: " where {platform} could be "jsp" or "asp".

The main query string variables you will need are:

iDocID={SI_Id of doc to view} This is one way of identifying the document to be viewed. You could also use the CUID or the name combined with the folder location of the document.

lsS{param name}={param value} for parameters where {param name} is the name given to the parameter in CR and any spaces in the name should be replaced by "+". I.e. if you named a parameter "Customer ID" then {param name} should be substituted by "Customer+ID". {param value} is the value you wish to pass for this parameter. Repeat this query string value for as many parameters as you require.

Hope that helps.
Derek Stobbart.
BusinessObjects consultant - Perth, Western Australai.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top