Cannot get POJO [message #87249] |
Thu, 03 November 2005 16:00  |
Eclipse User |
|
|
|
Originally posted by: mlorenz.nc.rr.com
I have some logic that I have tested in Java and it works fine, but when I
try it through BIRT I get null as my object.
My initialize script for the report looks thusly:
importPackage(Packages.com.labcorp.cels.pla.domain.organizat ion);
labCorp = LabCorp.INSTANCE;
lab = labCorp.getLabNamed( "CMBP" );
dept = lab.getDepartmentNamed( "Molecular Biology" );
The Lab class, which is to be returned from getLabNamed() and LabCorp are
both in the organization package.
I have a Data object from the palette with the following expression:
labCorp.getName()
That works fine. But, I have another Data object with:
lab.toString()
which does NOT work. An error for the report initialization script says:
TypeError: Cannot call method "getDepartmentNamed" of null (#9)
So, the Lab is obviously not being retrieved through my LabCorp instance.
If anyone sees what I'm doing wrong, I'd greatly appreciate advice.
(I'm on BIRT 1.0.1 and Eclipse 3.1)
Thanks, Mark
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27915 seconds