First page Back Continue Last page Text

oracle adf workshop

Notes:


Using Groovy Variables in Error Messages

Using Groovy variables in error messages enables you to display dynamic labels and values in your messages. This also makes your messages more reusable when adding to a resource, as described in the next slide.

When you create the message, use any variable name, surrounded by curly braces. JDeveloper automatically adds the variable as a message token in the lower part of the Failure Handling page.

You must supply the values for the message tokens. You can use expressions such as source.hints.OrderDate.label to reference the value of the user-friendly display label of the OrderDate attribute of the source entity object being evaluated. To reference the value, simply use the name of the attribute.

At run time, the error message is displayed with the specified labels and values.