Selecting and submitting values automatically
A business report has numerous prompts on the prompt page. Often, users want to run a report for the latest month in the database, Camping Equipment product and E-mail as an order method.
They want a facility to either manually select values for these prompts or alternatively run the report for the previous selections on a single button click.
Getting ready
Create a list report with Product line, Order method, and Sales Quantity as columns.
Create optional filters on Product line, Order method, and the shipment month, that is, Month Key (shipment date).
Create a prompt page with three value prompts for these filters.
How to do it...
In this recipe, we will add a custom button on the prompt page that will allow users to quickly run the report for frequently used selections. To do this, perform the following steps:
We will start by wrapping the prompts within a span so that they can be captured easily in JavaScript. Add one HTML tag before and one after...