Chapter 6 Using the Report Language Editor


Translating a keyword in an object property value

To translate a keyword in an object property value, you must open a report language resource file and define mappings in a mapping table.

Mapping tables are made up of:

The translations you perform in the report language resource file are visible in the generated report.

The Values Mapping category allows you to define translations for keywords in object property values for:

Standard mapping table customization

You can customize the predefined Standard mapping table, which contains keywords that apply to all modules:


Mapping table creation

In addition of using the Standard mapping table, you can create your own mapping table that you can associate to a particular module afterwards. To do so, you have to do the following:

The following example shows a new mapping table DisplayMap created from the Lists category. You cannot use it until you assign it to a particular module:


Mapping table assignment

Once you have created a new mapping table, you can assign it to a particular module.

To do so, you have to recreate the Object Attributes tree view in the Forms or in the Lists category.

For example if you want to assign a mapping table for columns in a PDM, you have to do the following:

The following example shows a mapping table in which each column object property uses a different mapping table:


Steps To translate a keyword in an object property value:

  1. Open the Report Language Editor.
  2. Click the Values Mapping category in the Language tree view to display its tree view.
  3. Click the Lists or the Forms category to display its tree view.
  4. Click a module category to display its tree view
  5. Drill down to the object for which you want to display the mapping table to translate.

    The corresponding mapping table appears to the right of the tree view.
  6. Click a blank line in the Name column.
  7. Type a keyword value to translate.
  8. Click the corresponding line in the Value column and type the mapping table name you want to use for the translation of the keyword value that will display in the generated report.
  9. Click OK.

    Each time a mapping applies, the exact content of the keyword in the Name column is evaluated (disregarding the case) and replaced with its corresponding translation, which is defined in the mapping table that appears in the Value column.

Example of a translation with a mapping table assigned to a particular module

You define the MandMap mapping table in the Report Language Editor that will be used by another mapping table that you define afterwards:


You define the Column mapping table that uses the MandMap mapping table you have previously defined:


How it appears in the generated report:


 


Copyright (C) 2005. Sybase Inc. All rights reserved.