exeskull1 Posted February 10, 2017 Share Posted February 10, 2017 Hi all,I am new to Jasper so i'am not sure that i do correct things.For example i made report something like this So i am not sure how to get values to this fileds(from my one only object) that are inside this text fields? Link to comment Share on other sites More sharing options...
elizam Posted February 11, 2017 Share Posted February 11, 2017 Have you tried running the report (preview tab)? Are you getting an error? It looks like some of your fields aren't mapped to anything, so those don't look right.If you run preview and still can't figure it out, then if you can post your XML, people will be better able to help you. Link to comment Share on other sites More sharing options...
hozawa Posted February 11, 2017 Share Posted February 11, 2017 Recommend that you go through Jaspersoft Studio tutorial on how to create a report. Fields are populated from datasource. Datasource is often a database table. It is recommended to setup a datasource before you begin designing your report.http://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v630/creating-simple-report Link to comment Share on other sites More sharing options...
exeskull1 Posted February 11, 2017 Author Share Posted February 11, 2017 [/code] [/code] So i have only one object where i get all that i need for all this fields, but i dont know what i need to write in .xml so this fields could get value ? Link to comment Share on other sites More sharing options...
elizam Posted February 11, 2017 Share Posted February 11, 2017 Yes, Hozawa is right, your report is set with the empty data adapter. You have to set up a data adapter bto connect to your database and use that in the report. Link to comment Share on other sites More sharing options...
exeskull1 Posted February 11, 2017 Author Share Posted February 11, 2017 But why? I just have one object in List, i dont have database... Link to comment Share on other sites More sharing options...
elizam Posted February 11, 2017 Share Posted February 11, 2017 yoou still have to make a data adapter of some kind. JasperReports is a framework for getting data from a data source and displaying it. If that's not what you want, maybe you are using the wrong program. Link to comment Share on other sites More sharing options...
exeskull1 Posted February 12, 2017 Author Share Posted February 12, 2017 Nah, I figure out, its working now. Thanks for helping! Link to comment Share on other sites More sharing options...
hozawa Posted February 12, 2017 Share Posted February 12, 2017 Just for reference, if you're not going to be using a database, you still have to create an appropriate datasource such as XML datasource and JavaBeans datasource where data will be fetched into the report. 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