Jump to content

Field generation with JRDataSourceProvider


ujbi

Recommended Posts

hello,

 

I'm using ireport 1.2.8 to create fields from a custom JRDataSourceProvider. When I open the report query dialog, tab DataSource Provider and invoke Get fields from datasource all fields from my JRDataSourceProvider are listed. But if I try to use these fields to set up the chart parameters, I get the error message that the fields do not exist (Chart properties, expression editor).

I expected that the fields are created automatically...?

 

TIA

Gernot

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I am also having this issue. Any guidance or pointers to sample code or docs would be appreciated.

 

The JRDataSourceProvider I've coded pulls the query from the report in the create() method (where else would I get the query?) and sets the fields by executing that query.

 

Unfortunately, iReport does not call create() using the query until it runs a report.

 

Is there some other way to get iReport to use the query (entered in the menu: Data > Report query) to drive the avaialble fields. I need this to happen for both report compilation and also wizard-driven report generation.

 

many thanks in advance,

d.

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...