sreepriyar Posted April 29, 2007 Share Posted April 29, 2007 Hi all, I have a Java object where I define the keys dynamically.Lets assume key = label.name Now in the report I want to use this key value in conjunction with resourcebundle. eg $R{$F{key}}, so that the keys can be dynamically picked up from the resource bundle. Is there a way to achieve this in Jasper Reports or is the only solution to manually look up the resource bundle in the java code and pass the value to the jrxml file. All Jasper experts,Please respond. Link to comment Share on other sites More sharing options...
lucianc Posted April 30, 2007 Share Posted April 30, 2007 You can use the built-in str function:Code:<textFieldExpression>str($F{key})</textFieldExpression> HTH,Lucian 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