Create a Prompt with a List of Query Results

When you create a prompt that presents a list of results from another query, the prompt selection dialog box will display a drop-down list of values retrieved by running that query.

Tip: You can use a prompt with a list of query results to filter a dependent prompt's values.

Steps

  1. Access the Prompt Settings section of the Expression Builder window.
  2. Define the prompt settings as needed.
  3. In the Valid Values list, select Values From Query, and then select Next.

    The Values From a Query section appears.

  4. In the Enter query text or click Browse button to select an existing query box, enter SQL code directly. If you completed this task, then proceed to Step 6.

    -or-

    Select Browse.

    The Select a query from the catalog window appears.

  5. Select a query from the folder hierarchy, and then select Open.
  6. Select the Values are Exclusive check box if you want users to be able to choose only from the list of presented values in the prompt window. If you do not select this check box, users will be able to enter an alternate value for the prompt.
  7. Select the Allow Multiple Selections check box if you want users to be able to select multiple values by which to filter the query results.

    Note: The Allow Multiple Selections check box is enabled only if you select the Values are Exclusive check box.

  8. Select Next.

    The Configure Default Prompt Selection section appears.

  9. If you want a particular value to be selected by default, then select the row containing the necessary value, and then select Finish.

    Note: You can select multiple default prompt values only if the Prompt Data Type is set to Character and you selected the Allow Multiple Selections check box in the Values From Query section.

    The prompt appears in the Expression Builder window.

  10. Select Done.

    The Expression Builder window closes, and then, in the grid in the Conditions section, <expr> appears in the field on which you created the prompt.

Results

Copyright © 2018 General Electric Company. All rights reserved.