Create a Query User Interface
Query UI is the user interface (UI) that shows the grid filters.
Required Editions
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled |
| User Permissions Needed | |
|---|---|
| To create a query UI: | CGCloud Business Admin |
- In Setup, find and select Custom Metadata Types.
- For Query UI, click Manage Records.
- Click New.
- Add a label.
-
To display the filters on the grid in a sequence, enter a unique number as order.
Ensure that the number is unique by checking the order of other query UIs added to a query definition. The lowest-ordered filter appears on the left.
- To enter a custom label for the filter, select Is Custom Label, and enter a custom label.
- To disable the filter, select Is Read Only.
- Select a query definition.
-
Select a UI type.
- DatePicker
- Check box
- Multi-Select Picklist
-
If the UI type is DatePicker, enter a default value.
You can set fields from contextual objects in the format:
[Context].<fieldname>. - To identify the Apex method that executes the logic to generate picklist values, enter a condition function.
-
If the UI type is Check box or Multi-Select Picklist, perform these steps.
- Select a query condition, and to make the condition visible in the UI, select Visible.
-
Select a query parameter.
In the grid, all instances of {n} are replaced with the corresponding values of the configured query parameter record.
-
If the UI type is Multi-Select Picklist, in the Data Source for UI, perform these
steps.
-
Select Use Client Side Data Source.
When you use this filter, the picklist options are pulled from the data source table.
- Enter the API name of the field that is the picklist option on the data result.
-
In Dynamic Data Source, select a query definition.
This field establishes a sub query relationship and determines the data source or sub query to fill the picklist options.
- To manually fill the picklist options, select Use Manual Data Source and enter the values.
-
Select Use Client Side Data Source.
- Save your changes.
Did this article solve your issue?
Let us know so we can improve!

