Translated Labels
You can design reports that can be readily localized into multiple languages. When localized, the system dynamically reads the label master table to determine the appropriate labels to display on your reports. This table contains translated labels that can be specified with a string that specifies the required label (the label term key, for example “SALES_ORDER”). A report design can use these label term keys so that when the report is run, the system will retrieve the translated label in the appropriate language for the user.
If you attempt to translate a label that does not exist in the label master, you should create a record for it using Label Master Maintenance (36.4.17.24) so that the label can be translated and maintained.
For Label report fields, the value of the Text property will typically be literally displayed in the field when the report is rendered. However, the system can be instructed to automatically select translated labels when the report is rendered. This mode of operation is triggered when the Text property contains a value with the special ${LABEL_TERM} format, which instructs the system to look up the translated label corresponding to the LABEL_TERM used.
System labels can have short, medium, and long versions, of which the system intelligently selects the largest that will fit into the report field, taking into account factors such as field width and font size. For example, if the field width is not large enough to display the large label for the given text in the given font, the medium label will be displayed automatically if it fits.
Note that the Reporting Framework is flexible about the format of the label terms. For example, you can enter the term for Sales Order as ${SALES_ORDER} or ${Sales Order}. The system will replace spaces with underscores and perform case-sensitive matching at run-time.
There are also some variations on this format that allow you to explicitly specify which label should be used:
${TERM}S — specifies the short label
${TERM}M — specifies the medium label
${TERM}L — specifies the long label
${TERM}! — specifies a stacked label
Note that in the case of stacked labels, the height of the field must be large enough to fit all the levels in the stacked label or the display of the label will be truncated.
For Calculated fields, the value of the Text property is evaluated as a VBScript expression and the result will be displayed in the field when the report is rendered. One special case is when the expression consists of the name of a report data field, in which case the value of that data field will be displayed when the report is rendered.
For Calculated fields, you can also specify to have integers converted into the words for the number. For instance, you can have “12” displayed as “twelve.” The format is as follows:
${TERM}N — specifies integer to words conversion