Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section IV. End user
  4. Work with the SQL template designer
  5. Configure SQL Template Scope Selector Components
  6. Query Custom Combo Box

Query Custom Combo Box

The SQL Template Designer offers a feature to design a combo box that is populated with the results of the query. In addition to configuring the Query Custom Combo Box, a relevant report template query must be constructed to enable accurate report filtering using the combo box.

  1. In the Template Designer component, double-click Query custom combo box to access the configuration window.

  2. In the Heading field, enter the heading that will appear in the report template's scope selector with the drop-down list.

  3. In the Custom Combo Box query field, supply a query with the following components and then click Validate.

    SQL command

    SELECT DISTINCT

    Key field, Field value

    The comma-separated key-value pair is derived from a published view. For example:

    Key: storage_array_id

    Value: array_name

    The Key in the key-value pair is what will substitute the ${queryCombon} variable and the Value is shown in the Combo box.

    Use the help for descriptions of the published database views, including the available fields.

    See Help for Database Views.

    Access these views and fields using the SQL Template Designer Query tab.

    See Construct the SQL Query.

    Published view

    End the SELECT statement with FROM and the published view, with optional list criteria. For example:

    FROM aps_v_array_group ORDER BY array_name ASC

    Sample Query Custom Combo Box Queries

    SELECT DISTINCT server_id, server_name FROM apt_v_job
    SELECT DISTINCT client_id, client_name FROM apt_v_job
    SELECT DISTINCT product_type, product_type_name FROM apt_v_job
    SELECT DISTINCT job_type, job_type_name FROM apt_v_job
    SELECT DISTINCT vendor_status, vendor_status_name FROM apt_v_job
    SELECT DISTINCT policy_id, policy_name FROM apt_v_nbu_job_detail
    SELECT DISTINCT policy_type, policy_type_name FROM apt_v_nbu_job_detail
    SELECT DISTINCT media_server_id, media_host_name FROM apt_v_nbu_job_detail
    SELECT DISTINCT storage_array_id, array_name FROM aps_v_array_group
  4. In the Query tab, enter a SQL query that will use the value selected in the populated combo box. For example:

    select * from aps_v_array_group WHERE storage_array_id='${queryCombo1}'

Note:

Report designer variables are listed at the bottom right of the dialog window. Double-click a queryCombo variable to insert it into the query. If the ${queryCombo1} value is a string, it must be enclosed in single quotes to be evaluated as a text field. To determine if a database view field is a string or numeric use the Database Views Help. For more information,

See Help for Database Views.

Feedback

Was this page helpful?
Previous

Example of a Combo Box Configuration in a SQL Template

Next

Example of a Query Custom Combo Configuration in a SQL Template

Feedback

Was this page helpful?