PDA

View Full Version : Direct Run Report from View



Joe Coley
23-Jun-2005, 08:15 AM
I have a "button" on a web view to start a report.
This report always uses the same criteria to run. What I want to do is be
able to click the button on the view and bring up the report immediately,
essentially bypassing the "Run Report" and "Reset Form" buttons on the
report.
Anybody have suggestions on how to accomplish this?

Nick Wright
23-Jun-2005, 05:59 PM
Hi Joe,

Yes, it's quite straight-forward, you will notice in the report asp that
there is:

if <%RunReport = 1 then %> .... ,
this section is the report body
<% else %>....
this section is the entry bit
<% end if %>

It requires runreport=1, and the report to be seeded, do this from the
calling page (the one with the button)

Place the button in it's own form e.g.

<form method="POST" action="<YOURREPORTPAGE>.asp">
<input type="hidden" name="RunReport" value="1">
<input type="hidden" name="<PARAM2>" value="<VALUE">">
.....
.....
<input type="submit" name="Run" value="Run Report">
</form>

Hope this helps,

Nick

"Joe Coley" <sjoec@charter.net> wrote in message
news:uppmhW$dFHA.3408@dacmail.dataaccess.com...
>I have a "button" on a web view to start a report.
> This report always uses the same criteria to run. What I want to do is be
> able to click the button on the view and bring up the report immediately,
> essentially bypassing the "Run Report" and "Reset Form" buttons on the
> report.
> Anybody have suggestions on how to accomplish this?
>
>