Displaying Dates and Numbers in User's Locale
ADC5 is an HTML5 application, it can run in any HTML5 compliant browser on any desktop machine or mobile device. By W3C standard, the browser inherits the locale of the user logged on to the system. Mobile devices may not have the option to logon using different user accounts, in this case the browser will inherit the locale of the device. ADC5 will display the numbers and date(s). For locale settings to work properly, user's browser locale should match the profile (locale settings) in SAP. If there is a mismatch then the browser's locale setting will be used.
- Number
Use this control type for displaying numbers in locale specific format that uses just decimal separator. Where applicable (typically on mobile devices), this will display a numeric keypad. In the ADC 5 wizard, using context menu for control, "Number" control type can be changed to "Number - Locale" control type. - Number – Locale
Use this control type for displaying numeric data. The data will be displayed in locale specific format with both decimal and thousands separator. Where applicable (typically on mobile devices), this will display a numeric keypad. In ADC 5 wizard, using context menu for control, "Number - Locale" control type can be changed to Number control type. - Date
Use this control to display date without any locale specific conversion. In ADC 5 wizard, using context menu for control, "Date" control type can be changed to "Date - Locale" control type. - Date – Locale
Use this control to display the date in locale specific format (DD-MMM-YYYY). When the data is populated in Action Series, the format should be in ISO 8601 format that is in "yyyy-mm-dd". The NLINK Server handles locale specific conversion automatically. Irrespective of locale used for display, the date values from ADC screens are in “yyyy-mm-dd” format. In ADC 5 wizard, using context menu for control, "Date - Locale" control type can be changed to "Date" control type. - If numeric values should not be formatted in anyway just use the “Text” control to display data.
NLINK will not make any timezone based adjustments for date and time displays.
Data to/from SAP
In most cases SAP RFC (or BAPI) will work with date in YYYYMMDD format and time in HHHMMSS format. NLINK will not perform any locale specific transformations. Similarly for SAP Query the number, date, time are not transformed in any way.
ADC External System configuration
If Single Sign On (SSO) or Pass through option is used for passing ADC user credentials to SAP, *do not* specify the "Language" in ADC External System Attribute. That parameter is incorrectly displayed as required.
Language specific prompts in screen
In NMM, use menu option "Edit->ADC Language Setup" to create language specific prompts for various screens. The language specific texts are saved separately from meta-database. File "ADC Language.xml" should be distributed along with the meta-database.
Language specific prompts for menu items
In NMM, use menu option "Edit->ADC Menu Setup" to launch menu setup screen. Use context menu "Show Languages" on the tree view to edit various language settings. Menu settings are saved separately from meta-database. The file "ADC5 Menu Groups.xml" should be distributed along with the meta-database.
Language specific Text Messages
The Text Messages (NCM->TextMessages) can be entered in different languages. Use the context menu option from Text Messages to launch the wizard. The multiple Text Messages are part of the meta-database.
Related articles