ICRW advanced prompts: Run Interactive

You can add prompts at runtime that exclusively show data that matches a specified set of criteria. Unlike filters, prompts are set up as fields in which you input criteria when you run the report.

Run Interactive provides advanced prompts for enhanced runtime functionality with Interactive Custom Report Writer (ICRW) reports. This topic covers the following:

How to use Run Interactive with a report

Run Interactive is an option you can choose when you run an ICRW report from the lister page. This option enables advanced prompts that were applied to the report.

The runtime prompts used with Run Interactive are set for individual reports. For information on these advanced prompts, see the other sections in this topic.
  1. Go to Reports > All > Advanced > Interactive Custom Reports.

  2. Find a report that uses advanced runtime prompts.
  3. Select Run Interactive next to the report name and provide any prompt request information.

    Select the Run Interactive link next to an ICRW report name to activate the report's advanced prompts when you run the report.

Add advanced prompts to an ICRW report

  1. Go to Reports > All > Advanced > Interactive Custom Reports.

  2. Select a report to Edit.
  3. Go to the Prompts tab and select Add and choose the type of new prompt from the dropdown menu.
  4. In the New prompt dialog, specify the advanced prompt parameters as described in the following sections. For more information on ICRW report prompts, see Include runtime prompts for a report.
  5. Save the report.

Set SQL Results

The SQL Results option allows you to add prompts to reports that rely on custom SQL. These reports require a special type of runtime prompt to return accurate results.

A typical report prompt might create a simple list of customer names for you to view and select when the report is run. This type of column prompt works well with reports that are based on a single reporting area.

In most cases, a list of customers is the same across in all the reporting areas. This consistency allows ICRW to take the list of customers from a reporting area used by the report.

To create a selection list of customers, the Run Interactive feature takes advantage of the SQL Results option imbedded in the Choice List Values. Using the SQL Results option, you can write a simple query, such as the one in the following example.

The SQL Results option of the Report Prompts dialog works with the Run Interactive feature to dispaly pompt results for ICRW reports with custom SQL.

This query returns the values of a column in a single reporting area. The order by 1 clause sorts the values in the first column (in this case, the only column) in alphabetical order.

You can use more complex SQL for this column, if necessary. For example, you could prompt for a list of customers that received invoices totaling at least $1,000,000:

Copy
SELECT "Customer"."NAME"
From "ar:AR Invoices"
Where  sum("Invoice detail Measures"."AMOUNT" by "Customer"."Name") >= 1000000
ORDER BY 1 
The Run Interactive link in the ICRW Reports lister page enables ICRW to recognize and accurately process a query entered in SQL Results. The Run link is unable to process SQL Results.

Set Limit values by

The Limit values by feature is restricted to reports based on a single reporting area. This option is only available with Run Interactive.

The Limit values by option is useful when prompting for a range of values. For example, this option might be used to select from a list of customers that made purchases during a specified time frame. For this runtime prompt, a user selects a range of dates. The resulting list of customers is based on the date range that they enter. This prompt is known as a Cascading Prompt.

The prompt for a Transaction Date might resemble the following:

Transaction date prompt that requires the user to select dates from a calendar and then displays the data in between the selected dates.

The prompt for the customer list might include the following options:

The Limit values by option is selected for All Column Values on the Choice List Values dialog.

The user selects Run Interactive and enters a range of dates when prompted. A list of customers who made transactions within the specified date range returns as the results.

Specify longer lists of selection values

The Run Interactive option lifts the restriction on the number of values allowed in a prompt. With Run Interactive, you can include as many values in a prompt list as you want.

Scrolling through a long list of selectable values is not desirable. However, if a long list of selectable values is unavoidable, users can take advantage of Search.

Search for prompt values

Run Interactive incorporates Search for ease of use. This feature is useful when a prompt has a long list of selectable values.

Run Interactive Search option for ease of use with long lists of prompt values.

  1. Select Search to bring up the Select Values dialog.
  2. Enter the text to find the desired values.
  3. Move the desired values to the Selected panel.
  4. When all the necessary values are selected, choose OK.

You can enter text to quickly search for a value, then move it to the Selected panel. You can search and select multiple values.

Customize prompts with Run Interactive

You can customize your prompt selections when you use Run Interactive.

  1. Select Run Interactive for the ICRW report.
  2. Make your prompt selections and select View.
  3. Select F5 on your keyboard to refresh the browser page and make other prompt selections.