{"id":734,"date":"2008-02-29T03:45:33","date_gmt":"2008-02-29T09:45:33","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/legacy\/?page_id=734"},"modified":"2017-06-06T16:29:48","modified_gmt":"2017-06-06T21:29:48","slug":"bypassing-the-prompt-page-in-reports-via-url-parameters","status":"publish","type":"page","link":"https:\/\/www.mrc-productivity.com\/legacy\/reports\/bypassing-the-prompt-page-in-reports-via-url-parameters","title":{"rendered":"Bypassing the Prompt Page in Reports via URL Parameters"},"content":{"rendered":"<p><!-- Begin Content --><\/p>\n<h1>Executing a Report directly from a link and\/or URL<\/h1>\n<p>Usually a report is generated by clicking the &quot;Run Report&quot; button. For most customers, most of the time, this method works well. But there are times when you may need to skip the prompt page and proceed directly to the results page. As you may know, you can do this by adding <code>?run=2<\/code> to the URL line. This will cause the page to run with the defaults from the prompt page. However, you may wish to override these defaults for Ad Hoc Reporting.<\/p>\n<p><strong>Options for Ad Hoc Reporting:<\/strong><\/p>\n<p>\u00b7 Display or Hide Detail Row<br \/>\n\u00b7 Display or Hide Sub-total Row(s)<br \/>\n\u00b7 Display or Hide Grand total Row<br \/>\n\u00b7 Choose an Output Format<br \/>\n\u00b7 Pass Record Selection to Report<br \/>\n\u00b7 Specify Top 10 Style Parameters. Click <a href=\"https:\/\/www.mrc-productivity.com\/legacy\/deprecated-documentation\/top-ten-style-reports\">here<\/a> to learn more about Top 10 Style Reports.<\/p>\n<p>In this example, we&#39;ll treat it as if you were going to execute a report directly into .PDF form, hiding the detail row, displaying sub-total and grand total rows, and passing a value of &quot;100&quot; as the first record selection.<\/p>\n<p><strong>The link to execute the report by passing the parameters will then look something like this:<\/strong><\/p>\n<p><code>https:\/\/IPAddress\/mrcjava\/servlet\/DD.RXXXXXs?run=1&amp;R001=100&amp;D_DETAIL=0&amp;S_CUSNO=1&amp;G_TOTAL=1&amp;outfmt=11<\/code><\/p>\n<p>where<\/p>\n<p><strong>IPAddress<\/strong> &#8212; IP address of the server or qualified server name (ex: 192.168.1.100)<br \/>\n<strong>DD<\/strong> &#8212; Data Dictionary in which report resides<br \/>\n<strong>RXXXXXs<\/strong> &#8212; Executable report program number<br \/>\n<strong>?<\/strong> &#8212; This is the indicator that there are parameters being passed to the RXXXXXs program<br \/>\n<strong>run=1<\/strong> &#8212; Indicates to the program to bypass the prompt page and default settings, and to instead use the parameters which follow<br \/>\n<strong>&amp;<\/strong> &#8212; This is a deliminator between parameters being passed<br \/>\n<strong>D_DETAIL=1<\/strong> &#8212; Specifies to include detail level in the report<br \/>\n<strong>S_CUSNO=1<\/strong> &#8212; Specifies to include the subtotal by the field CUSNO (customer number) that the report is sequenced by<br \/>\n<strong>G_TOTAL=1<\/strong> &#8212; Specifies to include grand total in the report<br \/>\n<strong>outfmt=11<\/strong> &#8212; Specifies the output format in which the report will be generated, PDF in this case<br \/>\n<strong>rptPage=FILE<\/strong> &#8212; This option allows you to control Pagename attributes. Learn more about Pagename <a href=\"https:\/\/www.mrc-productivity.com\/legacy\/m-painter-app-prop\/how-to-use-page-name-to-show-different-outputs-for-one-application\">here<\/a>.<\/p>\n<p>Output Format List:<\/p>\n<p><strong>outfmt=0<\/strong> &#8212; HTML<br \/>\n<strong>outfmt=1<\/strong> &#8212; Print Optimized HTML<br \/>\n<strong>outfmt=4<\/strong> &#8212; XML<br \/>\n<strong>outfmt=11<\/strong> &#8212; PDF<br \/>\n<strong>outfmt=12<\/strong> &#8212; CSV<br \/>\n<strong>outfmt=13<\/strong> &#8212; True Excel (.xlsx)<br \/>\n<strong>outfmt=14<\/strong> &#8212; Text File (.txt)<br \/>\n<strong>outfmt=15<\/strong> &#8212; Optimized Excel (.xlsx)<\/p>\n<p><!-- End Content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Executing a Report directly from a link and\/or URL Usually a report is generated by clicking the &quot;Run Report&quot; button. For most customers, most of the time, this method works well. But there are times when you may need to skip the prompt page and proceed directly to the results page. As you may know, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":557,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-734","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/pages\/734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/comments?post=734"}],"version-history":[{"count":12,"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/pages\/734\/revisions"}],"predecessor-version":[{"id":8264,"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/pages\/734\/revisions\/8264"}],"up":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/pages\/557"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/legacy\/wp-json\/wp\/v2\/media?parent=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}