Skip to main content



      Home
Home » Archived » BIRT » How to set column i.e. text field values from DataSetEventAdapter
How to set column i.e. text field values from DataSetEventAdapter [message #545710] Thu, 08 July 2010 13:07 Go to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

Hi,

I am trying to implement a Java-based event handler for a data set.
However, I do not understand how to write to a text field/list
cell/table cell from the onFetch() method, yet?

Are there any examples out there?

--
Regards,
Patrick

--
email: pschoenb@gmx.de
PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39
Re: How to set column i.e. text field values from DataSetEventAdapter [message #545905 is a reply to message #545710] Fri, 09 July 2010 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Patrick,

From a dataset event handler you do not write to a text filed. It is
just used to populate the dataset. You can then drag the dataset to the
report or drag individual columns to an existing table/gird. Every
table in a birt report is bound to a dataset (look at the binding tab in
the properties editor) which will do the evaluation automatically. If
you can give some more details I can help with an example.

Jason

On 7/8/2010 1:07 PM, Patrick Schönbach wrote:
> Hi,
>
> I am trying to implement a Java-based event handler for a data set.
> However, I do not understand how to write to a text field/list
> cell/table cell from the onFetch() method, yet?
>
> Are there any examples out there?
>
Re: How to set column i.e. text field values from DataSetEventAdapter [message #545943 is a reply to message #545905] Fri, 09 July 2010 12:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

On Fri, 09 Jul 2010 10:54:20 -0400, Jason Weathersby wrote:

> From a dataset event handler you do not write to a text filed. It is
> just used to populate the dataset. You can then drag the dataset to the
> report or drag individual columns to an existing table/gird. Every
> table in a birt report is bound to a dataset (look at the binding tab in
> the properties editor) which will do the evaluation automatically. If
> you can give some more details I can help with an example.

Jason,

meanwhile, I found out that I have to extend ScriptedDataSetEventAdapter
and overwrite fetch().

However, I am still puzzled how to actually get the data into the
dataset. I tried

row.setColumnValue(columnName, someString);

BIRT does generate some PDF, but except for the footer that I've put
into the master page, I get empty pages.

What am I missing?

--
email: pschoenb@gmx.de
PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39
Re: How to set column i.e. text field values from DataSetEventAdapter [message #545944 is a reply to message #545943] Fri, 09 July 2010 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Have you dragged the dataset on to the report canvas? Datasets do not
run unless they are bound to a report item (table/chart/etc).

Jason

On 7/9/2010 12:23 PM, Patrick Schönbach wrote:
> On Fri, 09 Jul 2010 10:54:20 -0400, Jason Weathersby wrote:
>
>> From a dataset event handler you do not write to a text filed. It is
>> just used to populate the dataset. You can then drag the dataset to the
>> report or drag individual columns to an existing table/gird. Every
>> table in a birt report is bound to a dataset (look at the binding tab in
>> the properties editor) which will do the evaluation automatically. If
>> you can give some more details I can help with an example.
>
> Jason,
>
> meanwhile, I found out that I have to extend ScriptedDataSetEventAdapter
> and overwrite fetch().
>
> However, I am still puzzled how to actually get the data into the
> dataset. I tried
>
> row.setColumnValue(columnName, someString);
>
> BIRT does generate some PDF, but except for the footer that I've put
> into the master page, I get empty pages.
>
> What am I missing?
>
Re: How to set column i.e. text field values from DataSetEventAdapter [message #545963 is a reply to message #545944] Fri, 09 July 2010 13:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

On Fri, 09 Jul 2010 12:31:54 -0400, Jason Weathersby wrote:

> Have you dragged the dataset on to the report canvas? Datasets do not
> run unless they are bound to a report item (table/chart/etc).

Yes, I dragged one dataset element just into the report, and another
into the header cell of a list, but both do not display.

What could I be missing?

--
Regards,
Patrick

--
email: pschoenb@gmx.de
PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39
Re: How to set column i.e. text field values from DataSetEventAdapter [message #545980 is a reply to message #545963] Fri, 09 July 2010 14:45 Go to previous message
Eclipse UserFriend
Patrick,

I sent you an email with an example. Can you try it?

Jason

On 7/9/2010 1:57 PM, Patrick Schönbach wrote:
> On Fri, 09 Jul 2010 12:31:54 -0400, Jason Weathersby wrote:
>
>> Have you dragged the dataset on to the report canvas? Datasets do not
>> run unless they are bound to a report item (table/chart/etc).
>
> Yes, I dragged one dataset element just into the report, and another
> into the header cell of a list, but both do not display.
>
> What could I be missing?
>
Previous Topic:Fixed number of characters in column
Next Topic:Help for BIRT charts / data sets
Goto Forum:
  


Current Time: Wed Jul 16 15:32:31 EDT 2025

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

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

Back to the top