Jump to content
We've recently updated our Privacy Statement, available here ×

Localize java.util.Collection, str( $P{paramCollection} )


marc_hueskens

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...