2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: MadMax - motogod registering fields 2005-11-08 02:09 I have a small problem with registering fields ... i want to register a field which is derived from a variable in a java class .. for example .. com.abc.constants.employee_code = "employeeCode"; employeeCode is the actual field name which is stored as a constant variable .. i want to be able to use com.abe.constants.employee_code instead of "employeeCode" By: Teodor Danciu - teodord RE: registering fields 2005-11-08 08:11 Hi, What version of JasperReports are you using? Thank you, Teodor By: MadMax - motogod RE: registering fields 2005-11-08 08:25 I am using Version 1.0.2 By: Teodor Danciu - teodord RE: registering fields 2005-11-08 08:30 The version you are using supports report fields with dots in their names. Now the question is: what data source are you using with the report and whether this data source is able to recognize those fields. Teodor By: MadMax - motogod RE: registering fields 2005-11-08 08:39 Thanks Teodor, I think that kinna answers my question. I am using a custom data source which implements the JRRewindableDataSource. I am passing a List of Maps. My implementation does not recognise the fields with dots, which are actually strings. The value of these strings contains the field names which are the key to the Map. Regards Mohan 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