SAP Knowledge Base Article - Public

1333169 - Reporting off of complex datatypes doesn't work in CR for Eclipse 2


Creating a report via Eclipse based on hierarchical POJO classes.

Both classes show their primitive datatypes (string, integer) but the relation myFirstObject.mySecondObject is omitted.

Reproducing the Issue

Using Crystal Reports for Eclipse 2: 

1) Create two POJO classes, e.g. ClassOne and ClassTwo containing a string property each and ClassOne also containing an object of ClassTwo.

2) Right-click ClassOne and click on Crystal Reports -> Add to new.

3) Drag ClassTwo into the same report.

4) Observe how both classes show their primitive datatypes but the relation (objClassOne.getClassTwo) is omitted.


This behaviour is by design. Crystal Reports supports only relational datasources and as such does not handle hierarchial, aggregates or indexed properties.


A workaround is to create a "wrapper" class that shows the relationship between the two other classes.


linked objects, linked classes, , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem


Crystal Reports, version for Eclipse 2.0