|
Re: Birt Report 3.2.22 fails in 4.3 [message #1405926 is a reply to message #1405921] |
Fri, 08 August 2014 14:13 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="createdBy">tlmf\moser</property>
<property name="units">in</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<data-sources>
<script-data-source name="BioOffice" id="2"/>
</data-sources>
<data-sets>
<script-data-set name="DataType" id="3">
<structure name="cachedMetaData"/>
<property name="dataSource">BioOffice</property>
<method name="open"><![CDATA[count = 0;
/*
* load and init data reader
* import Platform from org.eclipse.core.runtime
*/
importPackage(Packages.org.eclipse.core.runtime);
/* load bundle with POJOs and data loading class */
myBundle = Platform.getBundle("at.biooffice.views.birt");
/* load data reader class */
readerClass = myBundle.loadClass("at.biooffice.views.birt.ReportDataSetProvider");
/* create new instance of DataReader */
readerInstance = readerClass.newInstance();
/* load data tidy up class */
tidyClass = myBundle.loadClass("at.biooffice.views.birt.xml.Tidy");
/* create new instance of DataReader */
tidy = tidyClass.newInstance();
// get the list
clazzContactList = readerInstance.getDataSet("Contact");]]></method>
<method name="fetch"><![CDATA[if (count < clazzContactList.size()){
var obj = clazzContactList.get(count);
count++;
return true;
}
return false;]]></method>
</script-data-set>
</data-sets>
<page-setup>
<simple-master-page name="Simple MasterPage" id="4"/>
</page-setup>
</report>
[Updated on: Fri, 08 August 2014 15:00] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03134 seconds