Skip to main content

Pull-Down Menus

in DPQL Reference
Authors list
Avaldatud: 22. mai 2018|Last updated: 3. nov 2022

Pull-down menus Copy link to Pull-down menus to clipboard

When creating custom stats, you can set up specific values to be dynamically replaced by the user’s selection from a pull-down menu.

The same mechanism is used in the built-in stats which have pulldowns to choose a date range, ticket property, grouping field, order, etc.

image.png

To create a pull-down menu, you need to create a variable in the stat builder for that particular stat, and then put code in two places:

First, create a variable by clicking Add Variable within the stat you want to create.

Determine the ID, this will be used to refer to the variable in the title of the stat - allowing you to create a pull down menu. It will also be referred to in the query itself.

Determine the rest of the variable criteria as necessary.

image.png

Now, add the variable ID to both the title and query.

image.png

  • Title - this is where you can select which value you want for dynamic replacement. A default value is specified here in the variable itself. The format should be ${date}.
  • The query - this is where the actual replacement is made to run the correct query. The general form again is ${date}.
Sain abiEi saanud abi

Pages in Pull-Down Menus

Date Ranges
Authors list
Avaldatud: 22. mai 2018
Last updated: 3. nov 2022
Ticket Statuses
Authors list
Avaldatud: 15. mai 2018
Last updated: 3. nov 2022
Field Groups
Authors list
Avaldatud: 22. mai 2018
Last updated: 3. nov 2022
Ordering
Authors list
Avaldatud: 22. mai 2018
Last updated: 22. mai 2018
next pageCross-referencing Table Fields
previous pageAccessing Custom Fields

Please log in or register to submit a comment.

Page sections