« Return to Thread: Scripted Data Source (Java Object as Event Handler) How-to

Scripted Data Source (Java Object as Event Handler) How-to

by Johnnie :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have the following event handler:

...

public class ScriptedDataSetEventHandler extends ScriptedDataSetEventAdapter {

    ...

    private int currentCount;

    @Override
    public boolean fetch(IDataSetInstance dataSet, IUpdatableDataSetRow row) {

        if (currentCount++ < 11) {

            try {
                row.setColumnValue("cnt", currentCount);
            } catch (ScriptException e) {
               
            }

            return true;

        }

        return false;

    }

    public void open(IDataSetInstance dataSet) {

        super.open(dataSet);

    }

and my question is: where must I put this class so that BIRT can see it - both at development and deployment time?

Thank you for your attention,

Johnny

 « Return to Thread: Scripted Data Source (Java Object as Event Handler) How-to