Pentaho Community Forums

Go Back   Pentaho Community Forums > Pentaho Users > Pentaho Reporting

Pentaho Reporting Report Designer, Adhoc reporting, designing reports and charts, publishing to server...

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2007, 12:53 PM
James Watt James Watt is offline
Junior Member
 
Join Date: Jun 2007
Posts: 1
Default Web Service Data Source?

I'm evaluating Pentaho Report Designer 1.2.0 and I want to get my data from a web service which I have already written.

However, I can't find a way to create this kind of data source connection.

A brief explanation of how to do this would be greatly appreciated.

Thanks in advance.
Reply With Quote
  #2  
Old 06-12-2007, 06:45 AM
FRQuadrat FRQuadrat is offline
Junior Member
 
Join Date: Oct 2005
Posts: 14
Default

Just implement a class that has a static method that returns a javax.swing.table.TableModel.

Code:
package org.someorganization.datasources;
...
public class TestDataSource {
    public static TableModel createTestData() {
        ....
    }
}
It should reside in the classpath of the ReportDesigner (of course) in order to be found.

In the ReportDesigner, right-click on "Data Sets" and choose "add custom data set".
In the following dialog enter the full-qualified name of the class and the method name.
In the example above this would be "org.someorganization.datasource.TestDataSourc e" as class name and "createTestData" as method name.

The main task is to create an implementation of TableModel that accesses your web service.

Hope this helps, if there are any further questions, don't bother to ask
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:19 AM.