Docs‎ > ‎Data Explorer‎ > ‎

Data Explorer Field Expressions

Logic

Each expression is evaluated individually, and the right most expressions will overwrite the expression styles preceding. Enter Author Mode and select the gear to the left of the label of the attribute you wish to place the client side expression.

Syntax

Example: row.credit_balance > 2000, where credit_balance is a column name in this table:

Expressions are evaluated as JavaScript, and when passing text into exposed methods, wrap the value in quotes:

hasRole("plainTextValue")

CSS Selectors

Example: input applies styles to the current input.
Example: /input, by preceding the selector with a "/", an expression style is applied to all inputs on the page. The most common selectors for the form view are: "label", "input", and ".column-container" for the column label text, the column input, and the element containing them respectively. The only selector applicable for the grid section is: "cell".

CSS Styles

Examples:

  • display:none;
    Hides the selected elements.
  • color:red
    Changes the font-color to the color red.
  • background:white;
    Changes the background color to the color white.

Exposed Parameters

row

A reference to the values of this row.

action

The current logicContext verb for this row (INSERT, DELETE, UPDATE, null).

parents

A reference to parent roles and their row values.

Exposed Methods

hasRole("roleName")

Checks if a parent role exists.