Help:
Localization
|
Your application may include hard-coded drop-down lists. For example, your application may include a property that allows users to select the type of business. The property is configured to use text entered as table values in a Local List. As an alternative, configure the property to reference (look up) field value rules.
First you need to manually create a field value for each option that should appear in the drop-down. Field values for translations are usually saved in @baseclass and a high-level RuleSet so they can be shared among multiple applications. However, if the field values for a drop-down are specific to a particular application or if there is chance that different applications would need different choices in the dropdown then you should create the field value in one of your application RuleSets and with one of your application classes (often the class group) as the Applies To class. The Field Name will usually be the property that the dropdown is for and the Field Value is the value that will be the value for the dropdown option. Enter the value that the user should see in the dropdown in the Localized Label field and save the rule.
In the Property form, do the following:
SortByLocalizeValue
and DisableCache
by
clicking in the form.
SortByLocalizedValue
is true, the
drop-down list displays the options in alphabetical order
based on the localized value. When it is false, the
options display in alphabetical order based on the last
key of the field values (that is, sorted in the base
language rather than the localized language). In most
cases, set this to true.DisableCache
“true,” the
drop-down list is not cached locally at runtime, so it is
regenerated every time it is referenced. This technique
is useful if you have users who frequently switch locale
without logging off.Field Value
as Type of Table.
Enter the appropriate Class and
Field Name values. Generally, the
Class matches the class of the property and
the Field Name matches the name of the
property. However, if you use one list of options for
multiple properties, these values may not match.Remember to specify in step 6 that you want to include these existing base field values for your application RuleSets.
About
Property rules
About Field Value rules |