joelalmazancarbajal Posted August 3, 2022 Share Posted August 3, 2022 I am currently reviewing reports that were made a long time ago and I have had to solve some errors, most of them are easy, but I have come across a case and I do not know what to do, here is an example: ==================================================== =============== <textField> <reportElement x="0" y="0" width="550" height="30" uuid="512e96bd-1cfd-4194-b8c7-ec546ba1e15a"/> <textFieldExpression><![CDATA[ExternalInfo.getStudentName($F{student_id})]]></textFieldExpression> </textField> ==================================================== =============== The class exists in my project, and when I invoke it, it returns the value, but Jasper does not send the value of the field, it literally sends the text "$F{student_id}" or so it seems to me. By deleting this field the report works. but there are several similar cases and redoing all the reports is not my best option. Originally, the reports were made in ireport, but they were migrated to jasper Link to comment Share on other sites More sharing options...
yama818 Posted August 6, 2022 Share Posted August 6, 2022 I am not fully understanding your situation, but I thought it was possible that you were using 'scriptlet' to create your own function (ExternalInfo.getStudentName).Reference video about 'scriptlethttps://community.jaspersoft.com/wiki/video-using-scriptlets-inside-tibco-jaspersoft-studio-and-tibco-jasperreports-server 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