rida_10 Posted May 30, 2011 Share Posted May 30, 2011 can a query input control parameter make reference to resource bundle using the notation $R{certain_property}like we can in ireport. I need these because, i need to define as a resource bundle a property named countryId whose value is constant bec i don't want to use cascading parameters here, bec if i want to install the jasperserver in italy i want to see always the combo list of italian cities, and by that i get rid of extra un necessary parameter (the country) bec. its known always for that user in italy that all his data are for italian cities so i imagine that the parameter goes like this: select cityID, cityName from city_table where city_table.countryID = $R{COUNTRY_ID} where COUNTRY_ID is defined in a properties file. Post Edited by rida_10 at 05/31/2011 06:28 Link to comment Share on other sites More sharing options...
khahn Posted June 3, 2011 Share Posted June 3, 2011 JasperReports Server 4.1 has a new feature for adapting reports to global audiences by localizing input controls. The server now supports multi-lingual prompts and static lists of values in input controls. The Italian cities would be a static list of values in an input control. The $R expression in the design of the input control would trigger linguistic changes in the report output for different locales, listing the cities in Italy as report parameters when the user logged into the server using the Italian locale option. Each $R expression refers to a name-value pair in a resource bundle. See the attached PDF for an example that uses departments instead of cities. Link to comment Share on other sites More sharing options...
rida_10 Posted June 6, 2011 Author Share Posted June 6, 2011 Thanks Khahn,very nice feature in jasper server, in the attached example do we have 2 resource bundle files each for different locale, that is one properties file for english locale and other for french OR all key-value properties for ALL locales are defined in one resource bundle(properties file)?????Post Edited by rida_10 at 06/06/2011 06:44Post Edited by rida_10 at 06/06/2011 06:48 Link to comment Share on other sites More sharing options...
khahn Posted June 6, 2011 Share Posted June 6, 2011 You need a resource bundle for each language. Name the default English one <basename>.properties. Name the other resource bundles using the i18n abbreviation (shown on the JasperServer login page Locale dropdown) as follows:<basename>_it.properties for Italian Link to comment Share on other sites More sharing options...
vijayp810 Posted July 26, 2013 Share Posted July 26, 2013 Where is the attachment? , please 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