ui.Dialog.setGroupByDesc

Defines sort order for a grouping column of a list dialog.

Syntax

setGroupByDesc(
  name STRING,
  val BOOLEAN
)
  1. name is the name of form field of a list dialog, defined to group rows. See Identifying fields in ui.Dialog methods.
  2. val is a boolean value: TRUE for descending order, FALSE for ascending order (default when defining a grouping column).

Usage

After defining a grouping column with the setGroupBy() or addGroupBy() method, use setGroupByDesc() to define the sort order for the grouping column passed as first argument.

By default, the sort order is ascending. If the second parameter is TRUE, the sort order is descending.

For more details and code example, read the ui.Dialog.addGroupBy reference page.