Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with binding the fields


shreelu11

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 SQL

Query:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...