- Functionality
Tests whether the attribute’s value range is determined by a value set (fixed / object valueset). If so, the translated label is returned according to language settings of the user.
Relation valuesets are handled by the function 'getAuditedValueRelation' due to the underlying defined relation.
- Arguments
getValuesetTranslation(botypeName,attrName,value)
botypeName: The name of the source object type (String).
attrName: The name of the (maybe structured) attribute of the source object type (String).
value: The string representation of the attribute value (String).
- Return
String: The translated label of fixed/object valuessets (String)
- Examples
Fixed Valueset:
getValuesetTranslation('Person','title','Mrs' returns 'Fr.' (user uses German language)
Object Valueset:
getValuesetTranslation('Planposition','salestaxtype','US_CA_6.25') returns
'US California Reduced 6.25%' (user uses English language)