%const%

Expands to the value of a lookup. The lookup must have a specified id.

Syntax

%const['id']['key']%

Parameters

Parameter

Values

Restrictions

Description

id

String

Must be an id defined in a <lookup> tag

ID of the lookup tag.

key

String

Must be a valid key within the specified lookup.

Key within the lookup tag whose value will be returned.

Example

Given the following lookup:

<lookup id="family" scope="private">

<entry key="father">Homer Simpson</entry>

<entry key="son">Bart Simpson</entry>

<entry key="mother">Marge Bouvier-Simpson</entry>

<entry key="daughter">Lisa</entry>

<entry key="baby">Maggie</entry>

</lookup>

The following code will display the label “The son is Bart Simpson”.

<label "The son is %const['family']['son']%"/>