Input Parameters

You can define input parameters (which can be values or functions) and use them anywhere in an operator expression, to inject values dynamically.

See Also
Creating Input Parameters
Expression Language Principles
Types
Variables
Expression Operators

An input parameter starts with the $ sign, followed by the name of the parameter.

For example, if you define a limit parameter that returns an Integer in your data query, the following expression is valid:

person.age > $limit

If the placeholder has no arguments, parentheses are optional. The previous example is strictly equivalent to:

person.age > $limit()

If your parameter has arguments, the expression language interprets it as a function instead of a value.

For example, if you define a predicate parameter that accepts an Integer as argument and returns a Boolean, the following expression is valid:

$predicate(person.age)

When Data Perspective Studio calls the data query, the expression "age > 10" is valid for the predicate argument.