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
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories