Reporting POJO attributes [message #85852] |
Mon, 31 October 2005 13:59  |
Eclipse User |
|
|
|
Originally posted by: mlorenz.nc.rr.com
I have been through the basic tutorial and I am aware of the (relatively)
new Hibernate and BIRT article. However, I have not seen much in the way
of working with POJO's in my model layer. Almost everything centers around
iterating over rows from a DB.
My application has some iteration, but most of what I have to report on
for our most important report is lots of attributes of the target object
and closely associated objects. There is very little iteration.
Can anyone walk me through an example or point me to a URL that details
how to do this?
Thanks so much - I am trying to get our projects to move to BIRT, but if I
can't get this resolved...
Mark
|
|
|
|
|
|
|
|
|
|
|
Re: Reporting POJO attributes [message #86077 is a reply to message #86062] |
Tue, 01 November 2005 09:35   |
Eclipse User |
|
|
|
Mark,
Were you able to see or run the example I uploaded?
If it is in a jar file drop it under WEB-INF/lib not classes, although I
thought that would work as well. If that doesnt work unjar the whole thing
in the classes directory to get it working.
Jar should be fine.
Once I got it working, you can either War up everthing or use the standalone
Engine download, which contains a War file already. You can modify it and
reWar it.
Jason Weathersby
BIRT PMC
"Mark Lorenz" <mlorenz@nc.rr.com> wrote in message
news:9c45858cd58d8960b72d8ecb73d4233c$1@www.eclipse.org...
> Just for further info, here's the full error reported on Preview:
>
> There are errors on the report page: - There are error(s) in Grid:null
> Error0 : data.engine.JSScriptInvalid(1 time)detail: Invalid Javascript
> expression. Source: DataSet:LabCorp.fetch, line: 0,
> Expression:function_prefix_1130849946059();function
> function_prefix_1130849946059(){return false; //no rows, just
> attributes}Script engine error: missing } after function body- There are
> error(s) in Data:null Error0 : data.engine.JSScriptInvalid(1 time)detail:
> Invalid Javascript expression. Source: DataSet:LabCorp.fetch, line: 0,
> Expression:function_prefix_1130849946060();function
> function_prefix_1130849946060(){return false; //no rows, just
> attributes}Script engine error: missing } after function bodyError1 :
> Failed to evaluate labCorp.getName() + " Results Report"(1 time)detail:
> Failed to evaluate labCorp.getName() + " Results Report"TypeError: getName
> is not a function. (#1)
>
|
|
|
|
Re: Reporting POJO attributes [message #86166 is a reply to message #86077] |
Tue, 01 November 2005 10:21   |
Eclipse User |
|
|
|
Originally posted by: m.n.com
I've had to restart Eclipse to get it to see anything new in WEB-INF/lib or
classes dir.
"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:dk7ug8$lgr$1@news.eclipse.org...
> Mark,
>
> Were you able to see or run the example I uploaded?
> If it is in a jar file drop it under WEB-INF/lib not classes, although I
> thought that would work as well. If that doesnt work unjar the whole
> thing in the classes directory to get it working.
> Jar should be fine.
>
> Once I got it working, you can either War up everthing or use the
> standalone Engine download, which contains a War file already. You can
> modify it and reWar it.
>
> Jason Weathersby
> BIRT PMC
>
>
> "Mark Lorenz" <mlorenz@nc.rr.com> wrote in message
> news:9c45858cd58d8960b72d8ecb73d4233c$1@www.eclipse.org...
>> Just for further info, here's the full error reported on Preview:
>>
>> There are errors on the report page: - There are error(s) in Grid:null
>> Error0 : data.engine.JSScriptInvalid(1 time)detail: Invalid Javascript
>> expression. Source: DataSet:LabCorp.fetch, line: 0,
>> Expression:function_prefix_1130849946059();function
>> function_prefix_1130849946059(){return false; //no rows, just
>> attributes}Script engine error: missing } after function body- There are
>> error(s) in Data:null Error0 : data.engine.JSScriptInvalid(1 time)detail:
>> Invalid Javascript expression. Source: DataSet:LabCorp.fetch, line: 0,
>> Expression:function_prefix_1130849946060();function
>> function_prefix_1130849946060(){return false; //no rows, just
>> attributes}Script engine error: missing } after function bodyError1 :
>> Failed to evaluate labCorp.getName() + " Results Report"(1 time)detail:
>> Failed to evaluate labCorp.getName() + " Results Report"TypeError:
>> getName is not a function. (#1)
>>
>
>
|
|
|
Re: Reporting POJO attributes [message #86211 is a reply to message #86151] |
Tue, 01 November 2005 10:57  |
Eclipse User |
|
|
|
Mark,
I am sorry you are having problems.
I am reattaching my example as a zip file.
Let me know if you get it.
I am also sending to your email.
I am not sure what you mean by the main() method.
If you mean in your class, definately not. The one you posted should work
fine.
What version of the BIRT are you using.
Jason Weathesby
BIRT PMC
"Mark Lorenz" <mlorenz@nc.rr.com> wrote in message
news:23632296e06348f0d29af72966d679ff$1@www.eclipse.org...
> Jason - I moved the .jar file to the lib directory - same result.
>
> BTW, I have not been able to use the appends from the other response (I
> don't know how to convert to useful files), so I don't know if it works
> for me or not.
>
> Mark
>
> P.S. Is the main() method supposed to do something specific or should I
> invoke report from main()? Doesn't seem like this should be required, but
> just wondered if there's something related to the .java design that could
> cause problems. (This is all so frustrating ... I expect this is something
> trivial that is keeping it all from working)
>
|
|
|
Powered by
FUDForum. Page generated in 0.09893 seconds