Skip to main content

Expression Editor

  • 2 minutes to read

This document describes how to use the Expression Editor to specify expressions in the End-User Report Designer.

Invoke the Expression Editor

  • Click the expression button (with an f symbol) displayed next to the selected control. This button allows you to invoke the Expression Editor instantly.

    Web Report Designer - Expression Button on a Control

  • Click an expression marker (f-marker) next to the property editor in the Properties Panel. A highlighted marker indicates that a property is bound to data.

    Web Report Designer - Expression Marker in the Properties Panel

  • Click the ellipsis button in the property editor in the Expression tab of the Properties Panel.

    Web Report Designer - Expressions Tab in the Properties Panel

Create Expressions

Tip

Integrate AI-powered Prompt-to-Expression functionality into the Web Report Designer control. Once integrated, the Prompt-to-Expression field appears in the Expression Editor and Filter Editor. Specify a prompt in natural language and click the Send button to generate an expression.

For more information on AI-powered Localization, refer to the following help topic: Generate Expressions From Prompts (Web Report Designer).

The Expression Editor offers functions, operators, data source fields, report elements, constants, and variables for expression creation.

Web Report Designer - Expression Editor

An expression can span multiple lines.

Web Report Designer - Multi-Line Expression

You can add single-line or multi-line comments in the following format: /* comment text */.

Web Report Designer - Comments in an Expression

The Expression Editor highlights an expression’s syntax and supports intelligent code completion (it suggests functions and available data elements as you type).

Web Report Designer - Code Completion in the Expression Editor

An error icon appears when an expression contains errors. Hover over the icon to display a pop-up notification with the error location.

Web Report Designer - Expression Error Notification

Expression Syntax

Refer to the following help topic for the expression syntax description: Expression Language.

Custom Functions

You can implement a custom function for use in expressions. Review the following help topics for more information: