Report Desk: Input Constants

Report Desk: Input Constants

Release Date: TBA
Version: 8.6

Background

Occasionally a report will need the user to enter a parameter input value that does not get used in a WHERE phrase, but may be used in a CASE statement in a function.  These input parameters are referred to as constants.  Here is an example.

Let's say you want the user to be able to enter a cutoff value constant which you will use to classify each detail row.  First, you need to create a function in the template that uses that constant:


In the above example, the input parameter called PctInClassA is represented by @@PARAM.PctInClassA@@ in the SQL function called SuggClass.  You can see that there are two such parameter input constants, PctInClassA and PctInClassB.

Now, you must drag a new constant to the Where Grid:


A default Column name is provided.  You should change the Prompt and Type column values as desired and then click on the info button to change the name to match the formula name and provide any other values:


After you save the design and run the report, the Parameter Input screen will look like this:


Further, press SQL to see how the constant value "80" replaces PARAM.PctInClassA@@ in the SQL SELECT statement:


Input Constants are available in this way to specify parameter values that are used in SQL functions defined in the report design template.

JEG


    • Related Articles

    • Feature: Searches for Report Desk Input Parameters

      Released: 3/4/2024 Verson: Elliott v8.6 and higher Overview Until now, Report Desk users did not have the ability to search the database for a specific value of an input parameter. With this release, the ability to search for database values for an ...
    • Report Desk: Optional File Input Parameter

      Release Date: TBA Elliott v8.6 This article describes how to allow the user to specify an input file of values instead of entering a comma-separated list of values for an input parameter with an "IN" or "NOT IN" Operator. Begin by setting the ...
    • Report Desk: Documentation Roadmap

      Release Date: 4/28/23 Version: 8.6 Setup and Configuration The following articles explain initial setup and ongoing maintenance of Report Desk: Report Desk: Setup and Configuration : Initial installation and ongoing maintenance. Elliott V8.6 ...
    • Report Desk: Report Documentation

      Release Date: 6/8/2021 Elliott Version: 8.6 & Up Displaying Report Documentation There are two places from which you can view the available documentation for a report: From the list of reports: From the Report Desk Input Parameters screen: The Report ...
    • Report Desk Tables

      Release Date: Same as V8.6 general release Modified Date: 05/10/2024 Version 8.6 Elliott Report Desk, initially released in Elliott v8.6, relies on a series of database tables that reside in the Root directory. Following is a list of the files and a ...