IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Create user interfaces for business processes > Building Heritage Coaches > Configure Heritage Coach controls > Controlling field and other formatting in Heritage Coaches

Use formatting with language localization resources

You can apply formatting to a Heritage Coach control that is bound to a localization resource as described in this procedure.

You can apply formatting to a Heritage Coach control that is bound to a localization resource. The localization resource for this example (named Localized Formats) includes a localization key named time, which contains two locales: Default Locale and Sweden. The value of Default Locale is ##:##:##, which is the standard format used to represent time in the majority of countries. The value of the Sweden locale is ##.##.##, which is the standard format for Swedish time.


Procedure

  1. Open a service that includes several variables, and click the Variables tab.

  2. Click the Link Localization button and select the localization resource (in this example, Localized Formats) that you want to link to the service variables as a resource bundle.

  3. Create a Heritage Coach that includes an input text control named Time. Then bind the formatting of the control to the localization resource bundle and localization key by typing <#= tw.resource.LocalizedFormats.time #> into the Format field.
  4. Save your changes.

  5. Optional: You can test the binding. To test the binding, change the interface language to svenska in IBM Process Portal preferences. Then run the BPD that contains the service and run the task from the Process Portal. When a you enter a 6-digit value such as 182400 into the Time field, the value should be formatted to 18.24.00 , which conforms to the formatting that you specified.

Controlling field and other formatting in Heritage Coaches


Related concepts:
Use formatting with variables