Legacy platform

Managing literals

A global property gets the value from a bundle entry, for example, label for a text box. You can add, modify, or delete literals in a widget.

Procedure

  1. Log in to Sterling Store Engagement. The Home page opens.
  2. From the application header, click the Development Tools icon Customize a screen or panel, and select Customize from the list.

    Alternatively, you can select Customize from Outline. The Select screen to Extend window opens. The list of screens present in the current screen is displayed. For example, if you open the Order Search screen, the tree displays Order Search, Order List Screen, and others present in this screen.

    From the tree, select the screen that you want to customize, and click Extend Screen.
    Note:
    • If you cannot customize the selected screen, an appropriate message is displayed.
    • You cannot use the customize option to customize screens that contain iframes, such as the Print PDF Container screen.
    • If multiple instances of the same screen are found, by default, the first instance of the screen is selected for customization.
  3. Select the widget for which you want to add, modify, or delete literals.
  4. Click the Layout tab, if necessary.

    By default, the Layout tab is selected.

  5. For a custom field that you want to globalize, click the Edit icon Edit bundle entry. The Field <selected property> window opens.

    Here, <selected property> refers to the property that you want to modify. For instance, if you select Field label, the window title is displayed as Field label.

    You can view the application-provided bundle entries and custom bundle entries, if available.

    Note: Only the properties that can be globalized contains the Edit icon Edit.
  6. Select the bundle entry from the list that you want to modify, and click the Edit icon Edit bundle entry. The Edit Bundle Entry window opens.
  7. Modify the bundle key or bundle text, and click Ok.

    If you select a custom bundle entry, you can modify bundle text, bundle key, or both. If you select application-provided bundle entry, you can modify only the bundle text.

    If the custom bundle key is same as the application-provided bundle key, a confirmation message is displayed. Click Ok. The application-provided bundle entry is replaced with the custom bundle value. For instance, consider the application-provided bundle text as Order number and the bundle key as OrderNo. When you create a custom bundle entry with bundle text as Order# and the bundle key as OrderNo., throughout the application Order number is replaced with Order#.

    You can also do the following tasks:
    • Add bundle entry - To add a bundle entry, in the <selected property> window, click the Add icon Add bundle entry. Ensure to prefix the bundle entry with extn_.
    • Delete bundle entry - In the <selected property> window, select the custom bundle entry and click the Delete icon Delete bundle entry.
      Note: You cannot delete the application-provided bundle entries.
    All custom bundle entries are present in the <INSTALL_DIR>/extensions/wsc/webpages/nls/Extension_bundle.js folder.
    Note: You can create only the base bundle file and not locale-specific bundle file. For more information about creating locale-specific bundle file, see Dojo globalization guidelines.
  8. From the list, select the bundle entry that you want to use and click Select.
  9. If you are modifying multiple literals, click Apply.
  10. Click Save to save all your extensions.
    Note: It is recommended that you refresh or reload the application after you save your extensions.