BIRT POJO empty report
Hello
I am new to BIRT, I am trying to run my report using POJO datasource.
I created my PersonBirt class with my 3 methods:
public class PersonBirt {
@Autowired
private PersonProvider personProvider;
Iterator<PeopleLinkData> iterator;
public void open(Object appContext, Map<String, Object> params, PeopleLinkFilter filter) {
// access provider
List<PeopleLinkData> peopleLinksData = personProvider.getPeopleLinks(filter);
iterator = peopleLinksData.iterator();
}
public Object next() {
if (iterator == null || iterator.next() == null) {
return iterator;
}
if (iterator.hasNext()) {
return iterator.next();
}
return iterator;
}
public void close() {
iterator = null;
}
}
- created my JAR and added it to my dataSource
- Returns empty the report, I guess because it needs a personId as my provider
- SELECT
*
FROM
ILPEOPLELINKS peoplelinks
WHERE 1=1
<if test="personId != null">
AND peoplelinks.PeopleSerno = #{personId}
- Added the parameter Peopleserno in dataset but it keeps showing empty
Categories
- All Categories
- 118 Developer Announcements
- 52 Articles
- 150 General Questions
- 137 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 82 Digital Asset Management
- 9.3K Documentum
- 30 eDOCS
- 175 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 6 XM Fax