Attribute translation tables
Definition
Soffid provides an easy to use mechanism to translate references or external codes into internal codes. For example, the HHRR application could be using a diferent coding scheme for business units.
To deal with this data mismatch, users can extend the data model, or can either use translation tables. This screen allows the user to create and maintain such tables. This tables can also be downloaded or uploaded as CSV files, enable the import of data contained into spreadsheets.
Usage of translation table is bound, but not restricted to, attribute translation expressions, by using trigger scripts, through the use of serverService interface.
Screen overview
Standard attributes
- Domain: the domain column represents the translation table name.
- Column 1
- Column 2
- Column 3
- Column 4
- Column 5
Column 1 to 5 meaning is user defined. Usage of translation table is bound, but not restricted to, attribute translation expressions, through the use of serverService interface.
Actions
Query |
Allows to query groups through different search systems, Quick, Basic and Advanced. |
Add new |
Allows you to add a new attribute translation table. That option adds a new row on the table to fill in the data. It will be mandatory to apply changes to save the data. |
Delete |
Allows you to remove one or more agents by selecting one or more records on the list. Or delete one by one. |
Import |
Allows you to upload a CSV file with the attribute translation table data to add to the system. First, you need to pick up a CSV file, that CSV has to contain a specific configuration. Then you need to check the contents. And finally, you need to select the mappings for each column of the CSV file to import the data correctly and to click the Import button. |
Download CSV file |
Allows you to download a CSV file with the information of all attribute translation tables. |
Apply changes |
Allows you to save new attribute translation tables or to save updated attribute translation tables. |
Undo |
Allows you to undo any changes made. |
Examples
Example 1
Long userId = source{id};
for ( account: serverService.getUserAccounts(userId, "AD soffid.pat")) {
//TO-DO
}
Example 2
lCentros = serviceLocator.getAttributeTranslationService().findByColumn1("CENTROS", "Madrid");
if (lCentros != null) {
for (var i = 0; i < lCentros.length; i++) {
if (lCentros[i] != null) {
out.println("** Centro - " + lCentros[i].column1 + " - " + lCentros[i].column2 + " - "
+ lCentros[i].column3 + " - " + lCentros[i].column4);
}
}
}
Example 3
lServer = serviceLocator.getAttributeTranslationService().findByExample("SERVER_COPIAS", null, null);
if (lServer != null) {
out.println("** SERVER_COPIAS - " + lServer);
}