starkanimozhi Posted June 20, 2016 Share Posted June 20, 2016 Hi All ,Can you please help me how to do versioning on jrxml. Actually when exporting report from jasperserver i got version value <local Resource> tag .I want to show that value in Jrxml . How to do this. Please help me on this . Regards,Kanimozhi. Link to comment Share on other sites More sharing options...
lucianc Posted June 21, 2016 Share Posted June 21, 2016 Try the following expression to show the JRXML resource version:((com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit) com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepositoryUtil.getThreadRepositoryContext().getReportUnit()).getMainReport().getLocalResource().getVersion()[/code]Regards,Lucian Link to comment Share on other sites More sharing options...
starkanimozhi Posted June 21, 2016 Author Share Posted June 21, 2016 Hi Lucian,It won't work.It showing error like can not be resolved to a type. I tried this in Textbox expression editor. KaniMozhi. Link to comment Share on other sites More sharing options...
lucianc Posted June 22, 2016 Share Posted June 22, 2016 How are you running the report? The expression will only work when running the report in JasperReports Server. Link to comment Share on other sites More sharing options...
starkanimozhi Posted June 22, 2016 Author Share Posted June 22, 2016 Hi Lucian,Yes, I got it . Thank you so much for your help. I am really very happy. hats off to you. Kanimozhi. 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