How to link to a run page with parameters set - 6.x
Summary
When the button is pressed on a page using the Run macro, the current setting of the parameters are converted to request parameters on the url. This drives the rendering of the page with the correct replacement parameters. The url can be used in a number of ways like providing links on other pages to pre-fill parameters. By careful construction of the url, you can get many different behaviors depending on your use case.
Pre-fill one or more parameters
Run the action (like pressing the run button on the screen) with the parameters specified or defaulted
Export (like pressing the export button on the screen with the parameters specified or defaulted
Examples
The easiest thing to do is go to the page, press the button, and then copy the url. The following explains a simple example with single year parameter.
Replace | Id | Request prefix | Request parameter | Action request | Export request | Url |
|---|---|---|---|---|---|---|
year:2013 | 1 | default | run_1_year=2013 | run_1=run | run_1=export | http://myexample.com/display/examples/test?run_1_year=2012&run_1=run |
year:2013 | 1 | blank | year=2013 | run_1=run | run_1=export | http://myexample.com/display/examples/test?year=2012&run_1=export |