Here two ways are provided to publish a large report set result via URL: JSP and servlet. Take the following examples to publish a large report set result by e-mail and to customize the message displayed in the web browser.
jrs.catalog=%2fcatalog path%2fcatalog name
jrs.report=%2freport set path%2freport set name
jrs.timeout_send_email=true/[false]
jrs.report_timeout=number (if timeout >number and jrs.timeout_send_email=true, send mail)
jrs.mailto=mail address
jrs.mailsubject=mail subject
jrs.result_type=1 (HTML) or 2(PDF) or 3(Text) or 4(Excel) or 5(PostScript) or 6(Rich Text) or 7(XML)
jrs.mailcomments=mail content
jrs.mailfrom=mail address of sender
jrs.timeout_sendmail_message=the message which you customize
There are two server JSPs for running a report set:
When you use tryView.jsp to run a report set without a parameter:
|
When you use runReport.jsp to run a report set with parameters:
|
jrs.cmd=jrs.try_vw (when the report set has no parameter)
jrs.cmd=jrs.web_vw (when the report set has parameter)
jrs.timeout_send_email=true/[false]
jrs.report_timeout=number (if timeout >number and jrs.timeout_send_email=true, send mail)
jrs.mailto=mail address
jrs.mailsubject=mail subject
jrs.result_type=1 (HTML) or 2(PDF) or 3(Text) or 4(Excel) or 5(PostScript) or 6(Rich Text) or 7(XML)
jrs.mailcomments=mail content
jrs.mailfrom=mail address of the sender
jrs.timeout_sendmail_message=the message that you can customize
When you use a servlet to run a report set without a parameter:
|
When you use a servlet to run a report set with a parameter:
|
You can set a message by setting the parameter jrs.timeout_sendmail_message.
For example, you want to display message as below:
Running <report name> takes more than <Timeout> seconds.
The subject is <mail subject> and has been sent to <mailto> from <mailfrom>
It is a file whose type is <type>.
Then you can set the parameter in URL:
jrs.timeout_sendmail_message=Running {6} takes more than {0} seconds.<p>The subject is {2} and has been sent to {1} from {5}.<p>It is a file whose type is {3}.
Where
{0} - The report set timeout
{1} - mail to
{2} - mail subject
{3} - result type
{4} - mail comment
{5} - mail from
{6} - Catalog name/report set
<p> - an Enter key
Example
|
This {6} is a large report set whose runtime is over {0} seconds.<p>The report was sent to {1} from {5}.<p>The subject of the mail is {2}.<p>Its type is {3}.
Note: You should type the sign " ' " twice if you use it in the message.