rinse Posted December 30, 2013 Share Posted December 30, 2013 Hi,I would like to create a report with Jaspersoft Studio. We will deploy reports (*.jrxml) with our application. We will run the report using the jasperreport API from our application.When we use a built-in function (e.g. WEEKDAY()) and run the report in our application there comes an error:The method WEEKDAY(Date) is undefined for the type...How can we use Jaspersoft Studio's built-in functions and run them using the jasperreport API?Thanks,Olaf Link to comment Share on other sites More sharing options...
Massimo Rabbi Posted January 10, 2014 Share Posted January 10, 2014 Hi,I suppose that in your application you already have the jasperreports jar. You will need the functions one. You can take it directly from the project sourceforge pages: http://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports%205.5.0/Please consider that the other requirement is the joda-time-2.1 library.Maybe you already have it in your application (its among JR library requirements), otherwise you should add it.Best regards,Massimo. Link to comment Share on other sites More sharing options...
rinse Posted January 13, 2014 Author Share Posted January 13, 2014 Hi,Thanks for your answer. I have got it working.Now, I want to have a cutom function added. I tried to follow this page: http://community.jaspersoft.com/wiki/jaspersoft-studio-expression-editor-how-extend-it-and-contribute-your-own-functions-part-2 , but it is very out dated. I can't get through it. The annotations are not valid any more and I don't understand how the property file should look like. Also the package names does not exists any more.Does any one have a working CustomFunction example?Thanks. Link to comment Share on other sites More sharing options...
srinuydlp87 Posted August 4, 2014 Share Posted August 4, 2014 Hi Rinse ,Which jar u added to resolve ur WEEKDAY built in functions. I am also getting same problem. Please help me out. Thank you Link to comment Share on other sites More sharing options...
rinse Posted August 5, 2014 Author Share Posted August 5, 2014 Hi, Before jasperreports 5.6.0 you could download a jar separately: jasperreports-functions-5.5.0.jar I just updated to 5.6.0 and did not found a new version of the functions jar. I took jasperreports-functions-5.6.0-SNAPSHOT.jar from jaspersoft studio now. I don't know if it is the right way. but it works for me. Just add it to your buildpath 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