Hey there !
Does anybody know how to localize a collection ?
I have a report with a multy-select-query assigned to it. I want to translate the selection / collection, but
str( $P{paramCollection} ) does not work and resolves to an error:
"Error evaluating expression : Source text : $P{ParamAlarmtype} ? str( $P{ParamAlarmtype} ) : $R{Any alarmtype}
Any help appreciated !
EDIT:
For example. $P{ParamAlarmtype} prints to [General, Safety, Transport, Message] , and i want it to be translated to (e.g. german) [Allgemein, Sicherheit, Transport, Meldung]
1 Answer:
$P{ParamAlarmtype} ? str( $P{ParamAlarmtype} ) : $R{Any alarmtype}
In your above expression provide value for $P{ParamAlarmtype}
e.g
$P{ParamAlarmtype} == "ABC" ? str( $P{ParamAlarmtype} ) : $R{Any alarmtype}