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
- Log in to Sterling Store Engagement. The Home page opens.
- From the application header, click
the Development Tools icon , 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.
- Select the widget for which you want to add, modify, or delete literals.
- Click the Layout tab, if necessary.
By default, the Layout tab is selected.
- For a custom field that you want to globalize, click the Edit icon . 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 . - Select the bundle entry from the list that you want to modify, and click the Edit icon . The Edit Bundle Entry window opens.
- 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 asOrderNo
. When you create a custom bundle entry with bundle text asOrder#
and the bundle key asOrderNo.
, throughout the applicationOrder number
is replaced withOrder#
.You can also do the following tasks:- Add bundle entry - To add a bundle entry, in the <selected
property> window, click the Add icon .
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 .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. - Add bundle entry - To add a bundle entry, in the <selected
property> window, click the Add icon .
Ensure to prefix the bundle entry with
- From the list, select the bundle entry that you want to use and click Select.
- If you are modifying multiple literals, click Apply.
- Click Save to save all your extensions. Note: It is recommended that you refresh or reload the application after you save your extensions.