Annotations
You use annotations in component metadata to perform specific operations, such as retrieving case information, running When rules, and retrieving environment information.
Supported annotations
The following table shows the annotations that Pega Platform supports:
Supported annotations in DX Component Builder
Annotation | Annotation name | Description | Example |
@ASSOCIATED | Associated | Resolves the meta data of associated properties and returns the value to the client. Typically used in the picklist component sub-type. If used in a data page, the result is a part of the response. |
|
@CASE | Case | Returns the ID of the current case. |
|
@DATASOURCE | Data source | Downloads the content in a data page to the client. The client then resolves the right records. Combine this annotation with |
|
@E | Expression | Evaluates an expression in the client and returns a Boolean value. All associated property values are also downloaded to the client, to evaluate the expression at the client. |
|
@ENV | Environment information | Resolves the environment information such as application name, application description, and access group. |
|
@FIELD_META | Field meta data | Returns the specified field’s meta data as an object |
|
@L | Localize string | Translates a string into a target locale value. The annotated values become part of the locale bundle. |
|
@LR | Localization rule | References to a
Rule-UI-Lozalization rule. |
|
@P | Property | Downloads the property information from the server and resolves the value from redux at the client. |
|
@ROUTING_INFO | Routing information | Returns the information about the container where the component is rendered. |
|
@USER | User data | Returns the user’s object name and ID. |
|
@W | When rule | Executes a When rule on the server and downloads the result to the client. The client then reads the value and passes it to the component. |
|
Previous topic Formats Next topic Expressions