eduablitas Posted August 28, 2014 Share Posted August 28, 2014 Hi and thanks in advance.I wonder if its possible to have the main report in spanishHashMap<String,Object> params = new HashMap<String,Object>();[/code]params.put("REPORT_LOCALE", new java.util.Locale("ES");[/code]JasperPrint print = JasperFillManager.fillReport(report,params,ds);// ds is a JRBeanCollectionDataSource with list of one ReportBean[/code]The structure of ReportBean is:OtherBean attribute1List<OtherBean2>attribute2Then i design to show the attribute2 data with a table object in iReport with one subdatasetThis list i send to iReport like a parameter in main report like this:params.put("myDsTableParam", new BeanDataSource(listOfBeans);//where "BeanDataSource" is a implementation of JRDatasource and lisfOfBeans is the list to send the table in iReport[/code]So i wonder if its possible to send my 2nd locale (english) to my dataset and get that i want that its text in my report from a message resource file ( $R{message.someKey} ) in spanish and data in table details with english locale language to show number in english formats. Its possible?? Regards and sorry for me english :( Link to comment Share on other sites More sharing options...
eduablitas Posted August 29, 2014 Author Share Posted August 29, 2014 My question is:"REPORT_LOCALE" parameter of main report is different to the "REPORT_LOCALE" of a subdataset? If yes, how to change REPORT_LOCALE param of my subdataset Link to comment Share on other sites More sharing options...
eduablitas Posted August 30, 2014 Author Share Posted August 30, 2014 Nothing? No way that the report working with multiple languages simultaneously?.I try to do it with subreports but i have the same problem. I can't set REPORT_LOCALE to subreport without changing the main report "REPORT_LOCALE" parameter.Any way to do that?Please need help!! 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