shreelu11 Posted June 28, 2007 Share Posted June 28, 2007 Hi Iam new to iReports,Doing my first report. I designed the report with two Text Fields called $F{pay_mode} and $F{amt} and i have given sql query in report query to fetch data from the DB. I don't know how to bind the query fields to ireport fields. plz let me know how to do this. Regards,Sreelekha. Link to comment Share on other sites More sharing options...
makina_syu Posted June 28, 2007 Share Posted June 28, 2007 Did you set active connection? Link to comment Share on other sites More sharing options...
shreelu11 Posted June 28, 2007 Author Share Posted June 28, 2007 ya, I have sat a active connection. I gave a sql query in report query, I am doubtful if i have to specify $F{pay_mode}and $F{amt}in the query in place of the database field name and bind the fields of ireport and database fields anywhere else.. Pls let me know how to do that. Link to comment Share on other sites More sharing options...
makina_syu Posted July 4, 2007 Share Posted July 4, 2007 Sorry I didn't answer earlier. Probably you solved your problem. Anyway, this is I can answer to you:In Report query select query language SQLQuery:SELECT payMode, amt FROM yourTable...When you write query like this you should click "Read Fields" or turn on "Automatically retrieve fields"If everything is ok you should retrieve desired fields and you should see them in area below query area. That is it! 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