Name Set
Applications often use repeated text such as messages, labels, or error descriptions in multiple places, making them difficult to manage individually. Name Set is a definition type used to group such strings and assign an identity to each one for easy and consistent access throughout the application. Instead of directly using text values in the logic, developers can refer to these identities, making the code cleaner and easier to maintain. Name Sets are especially useful for localisation, as strings can be translated without changing the underlying logic, and are typically accessed within a Rule Set definition or collection via Data Source.
Syntax
[Name Set : <Name Set Name>]
where, <Name Set Name> is Name of the Name Set.
Example
[Name Set : AnnexureErrorStrings]
Localize : Yes
List Name : E1 : “PAN Number Invalid”
List Name : E2 : “Lorry Number Missing”
List Name : E3 : “Commodity Code is Empty”
In this example, a Name Set called AnnexureErrorStrings is created to hold a collection of error messages. Each error message is assigned a unique identifier, allowing the strings to be referred to consistently from other parts of the application. Localization is enabled so that these messages can be translated based on the selected UI language.
➥ Click here to download Name Set Sample
Attributes
A Name Set becomes useful only when individual strings within it can be uniquely identified and accessed whenever required. List Name is an attribute used to define an individual string inside a Name Set and associate it with a unique identifier. The identifier acts as a stable reference in the application logic, while the string value represents the actual text that is displayed or used. Multiple List Name entries can be created within the same Name Set, making it easier to organise and manage related strings in a structured manner.
Syntax
[Name Set : <Name Set Name>]
List Name : <Identifier> : <String Value>
Where, <Identifier> is Logical key used to refer to the string.
<String Value> is Actual message or text.
Example
[Name Set : AnnexureErrorStrings]
List Name : E1 : “PAN Number Invalid”
Here, the identifier E1 is mapped to the string “PAN Number Invalid“. The identifier can be used wherever this message is required, ensuring the same text is reused consistently.
Applications used across different regions may require the same messages or labels to appear in multiple languages based on the user’s language preference. Localize is an attribute used to specify whether the strings defined in a Name Set should support localisation. When enabled, the strings are marked for translation and are displayed according to the currently selected UI language. This allows developers to maintain a single logic flow while presenting user-facing text in different languages, making the application more flexible and user-friendly across regions.
Syntax
[Name Set : <Name Set Name>]
Localize : <Logical Value>
where, <Logical Value> is a logical value deciding whether the background should be grayed.
Example
[Name Set : AnnexureErrorStrings]
Localize : Yes
In this example, localization is enabled for the Name Set. This means all strings defined under this Name Set can be translated and displayed in the user’s selected language.
