marc_hueskens Posted December 5, 2012 Share Posted December 5, 2012 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] Link to comment Share on other sites More sharing options...
ajinkya_c Posted December 5, 2012 Share Posted December 5, 2012 $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} Link to comment Share on other sites More sharing options...
marc_hueskens Posted December 5, 2012 Author Share Posted December 5, 2012 Sry. I think you misunderstood me. See my comment in the first post. Link to comment Share on other sites More sharing options...
marc_hueskens Posted December 5, 2012 Author Share Posted December 5, 2012 Maybe i should not have copied the whole expression... I just want to translate $P{ParamAlarmtype} $R{ $P{ParamAlarmtype} }does not work. str ( ${ParamAlarmtype} ) does not work. $P{ParamAlarmtype} e.g. prints [safety, General, Transport] or [] or [safety] or ... Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now