Skip to main content



      Home
Home » Archived » BIRT » [ANN] Use POJOs as DataSource Example
[ANN] Use POJOs as DataSource Example [message #46386] Wed, 15 June 2005 10:16 Go to next message
Eclipse UserFriend
Hi all

i have post an article[1] that demostrate the usage of POJOs as datasource
for BIRT reports
Next days i'will add the source code for download too.

I hope that this will be helpfull someone!

ps.
--
A note for BIRT's developers.

BIRT's viewer webapp that used to render (preview) the report in designer
can not find custom classes that provide the data. To do that happend i have
to create a [classes] folder in viewer's plug-in (/birt/web-inf) and put
them there.

This is not a problem in production mode but it's painfull in design mode
when you have to make changes and preview your report. Is it any workaround
about this issue. (a reference from report's project to onother open project
in eclipse's worksace, maybe)


[1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html

Best Regards

Stavros
Re: [ANN] Use POJOs as DataSource Example [message #46447 is a reply to message #46386] Wed, 15 June 2005 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.n.com

Thanks for posting this. What I am trying to do is figure out how to
report off a previously selected list of POJOs.
Re: [ANN] Use POJOs as DataSource Example [message #47020 is a reply to message #46386] Thu, 16 June 2005 04:03 Go to previous messageGo to next message
Eclipse UserFriend
<snip>
> Hi all
>
> i have post an article[1] that demostrate the usage of POJOs as datasource
> for BIRT reports
> Next days i'will add the source code for download too.
>
> I hope that this will be helpfull someone!
>>
> [1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html
>
</snip>

I have just add the source code in this article (eclipse project).

best regards

-stavros
Re: [ANN] Use POJOs as DataSource Example [message #47513 is a reply to message #46386] Fri, 17 June 2005 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi Stavros

Thanks for the hints! It works well except that In my case ( im
programming a design directly in java) the different row values dosent
show. For some reason only value for [0] are shown . The number of rows
is correct so the counting works but in fetch.

row["a"] = lRows[count].getA()

seems to be executed once or in any case it returns he same value all
the time.

Any hints on what it could be ?

thanks
/anders



Stavros Kounis wrote:
> Hi all
>
> i have post an article[1] that demostrate the usage of POJOs as datasource
> for BIRT reports
> Next days i'will add the source code for download too.
>
> I hope that this will be helpfull someone!
>
> ps.
> --
> A note for BIRT's developers.
>
> BIRT's viewer webapp that used to render (preview) the report in designer
> can not find custom classes that provide the data. To do that happend i have
> to create a [classes] folder in viewer's plug-in (/birt/web-inf) and put
> them there.
>
> This is not a problem in production mode but it's painfull in design mode
> when you have to make changes and preview your report. Is it any workaround
> about this issue. (a reference from report's project to onother open project
> in eclipse's worksace, maybe)
>
>
> [1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html
>
> Best Regards
>
> Stavros
>
>
Re: [ANN] Use POJOs as DataSource Example [message #47542 is a reply to message #46386] Fri, 17 June 2005 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi Stavros

Thanks for the hints! It works well except that In my case ( im
programming a design directly in java) the different row values dosent
show. For some reason only value for [0] are shown . The number of rows
is correct so the counting works but in fetch.

row["a"] = lRows[count].getA()

seems to be executed once or in any case it returns he same value all
the time.

Any hints on what it could be ?

thanks
/anders



Stavros Kounis wrote:
> Hi all
>
> i have post an article[1] that demostrate the usage of POJOs as datasource
> for BIRT reports
> Next days i'will add the source code for download too.
>
> I hope that this will be helpfull someone!
>
> ps.
> --
> A note for BIRT's developers.
>
> BIRT's viewer webapp that used to render (preview) the report in designer
> can not find custom classes that provide the data. To do that happend i have
> to create a [classes] folder in viewer's plug-in (/birt/web-inf) and put
> them there.
>
> This is not a problem in production mode but it's painfull in design mode
> when you have to make changes and preview your report. Is it any workaround
> about this issue. (a reference from report's project to onother open project
> in eclipse's worksace, maybe)
>
>
> [1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html
>
> Best Regards
>
> Stavros
>
>
Re: [ANN] Use POJOs as DataSource Example [message #47723 is a reply to message #47542] Fri, 17 June 2005 12:29 Go to previous messageGo to next message
Eclipse UserFriend
<user@domain.invalid> wrote in message news:d8uns9$vvo$1@news.eclipse.org...
> Hi Stavros
>
> Thanks for the hints! It works well except that In my case ( im
> programming a design directly in java) the different row values dosent
> show. For some reason only value for [0] are shown . The number of rows is
> correct so the counting works but in fetch.
>
> row["a"] = lRows[count].getA()
>
> seems to be executed once or in any case it returns he same value all the
> time.

hi anders

stupid maybe but did you increase "count" value inside the fetch method?

for example
<snip>
if (count < {your iterator limits} ){
count ++; row["a"] = lRows[count].getA() return true;
}

return false;stavros</snip>
>
> Any hints on what it could be ?
>
> thanks
> /anders
>
>
>
> Stavros Kounis wrote:
>> Hi all
>>
>> i have post an article[1] that demostrate the usage of POJOs as
>> datasource for BIRT reports
>> Next days i'will add the source code for download too.
>>
>> I hope that this will be helpfull someone!
>>
>> ps.
>> --
>> A note for BIRT's developers.
>>
>> BIRT's viewer webapp that used to render (preview) the report in designer
>> can not find custom classes that provide the data. To do that happend i
>> have to create a [classes] folder in viewer's plug-in (/birt/web-inf) and
>> put them there.
>>
>> This is not a problem in production mode but it's painfull in design mode
>> when you have to make changes and preview your report. Is it any
>> workaround about this issue. (a reference from report's project to
>> onother open project in eclipse's worksace, maybe)
>>
>>
>> [1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html
>>
>> Best Regards
>>
>> Stavros
Re: [ANN] Use POJOs as DataSource Example [message #47784 is a reply to message #47723] Fri, 17 June 2005 16:43 Go to previous message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi Stavros,

I got it now, I made the dataSet binding onthe individual dataitems and
not on the list to which they belong. So changing to a binding on table,
fixing resultset and adding columnhints etc it works nicely.


cheers
/anders


Stavros Kounis wrote:

> <user@domain.invalid> wrote in message news:d8uns9$vvo$1@news.eclipse.org...
>
>>Hi Stavros
>>
>>Thanks for the hints! It works well except that In my case ( im
>>programming a design directly in java) the different row values dosent
>>show. For some reason only value for [0] are shown . The number of rows is
>>correct so the counting works but in fetch.
>>
>> row["a"] = lRows[count].getA()
>>
>>seems to be executed once or in any case it returns he same value all the
>>time.
>
>
> hi anders
>
> stupid maybe but did you increase "count" value inside the fetch method?
>
> for example
> <snip>
> if (count < {your iterator limits} ){
> count ++; row["a"] = lRows[count].getA() return true;
> }
>
> return false;stavros</snip>
>
>>Any hints on what it could be ?
>>
>>thanks
>>/anders
>>
>>
>>
>>Stavros Kounis wrote:
>>
>>>Hi all
>>>
>>>i have post an article[1] that demostrate the usage of POJOs as
>>>datasource for BIRT reports
>>>Next days i'will add the source code for download too.
>>>
>>>I hope that this will be helpfull someone!
>>>
>>>ps.
>>>--
>>>A note for BIRT's developers.
>>>
>>>BIRT's viewer webapp that used to render (preview) the report in designer
>>>can not find custom classes that provide the data. To do that happend i
>>>have to create a [classes] folder in viewer's plug-in (/birt/web-inf) and
>>>put them there.
>>>
>>>This is not a problem in production mode but it's painfull in design mode
>>>when you have to make changes and preview your report. Is it any
>>>workaround about this issue. (a reference from report's project to
>>>onother open project in eclipse's worksace, maybe)
>>>
>>>
>>>[1] http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html
>>>
>>>Best Regards
>>>
>>>Stavros
>
>
>
Previous Topic:A few easy questions about your experience with BIRT
Next Topic:tree control
Goto Forum:
  


Current Time: Mon Jul 14 10:44:55 EDT 2025

Powered by FUDForum. Page generated in 0.31128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top