Table of Contents

String resources

What are string resources?

String resources are pieces of text identified by a name and a value. They are used in UI views, rules, events, server methods and anywhere you need to localize a string value.

Creating a new string resource

String resources are grouped by modules.

To create a new resource:

  1. In the menu, expand the module Catalog that will contain the resource.

  2. Expand Shared.

  3. Click on String resources.

Create the following string resource (you can type directly in the table after clicking on the Add button) :

UnitPriceMustBeNullOrGreaterThanZero:

Name = UnitPriceMustBeNullOrGreaterThanZero
Value = The unit price must be null or greater than 0.

NumberAvailableUnitsProduct:

Name = NumberAvailableUnitsProduct
Value = The number of available units for the product {0} is {1}.

Save the changes and generate the application.