Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
FW: [birt-dev] Problem with Report using java directly



The extensionID can not be set. The Id should be set when you create the
oda-data-set or oda-data-source. There is a method 
ElementFactory :: newOdaDataSet(String name, String extensionId).
ElementFactory :: newOdaDataSource(String name, String ExtensionId).
should be used to create the oda elements.
 
The methods:
 ElementFactory :: newOdaDataSet(String name)
ElementFactory :: newOdaDataSource(String name)
are used to create the normal dataSet/dataSource without extension.


Thanks!

Ivy 
 
Actuate Software ShangHai center.
498 Guoshoujing Rd.Bld 3.Suite 3301. shanghai,201203
Tel: (86)21-50270900 ext:257
Fax:(86)21-50270901
Email: yli@xxxxxxxxxxx
 

-----Original Message-----
From: Wei Yan 
Sent: Saturday, July 09, 2005 3:21 PM
To: Jianqiang Luo; Yu Li
Subject: FW: [birt-dev] Problem with Report using java directly

Who can response to this question?

-Wei Yan


-----Original Message-----
From: birt-dev-bounces@xxxxxxxxxxx [mailto:birt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Andres Felipe Gomez Mondragon
Sent: Friday, July 08, 2005 3:50 AM
To: birt-dev@xxxxxxxxxxx
Subject: [birt-dev] Problem with Report using java directly

Hello,
I speak spanish, so sorry for english.
I have a problem because Iam trying to make manually a report using the
code 
java.

I want to insert an atributte into the tag <oda-data-source> called 
extensionID, but i dont know which method or class should i use.

I have this:

ReportDesignHandle design = session.createDesign();
ElementFactory factory = design.getElementFactory();
OdaDataSourceHandle dataSource = factory.newOdaDataSource("JKalyptra");
dataSource
                .setBeforeOpen("extensionProperties.odaUser = 
\"jkalyptra\";"
                        + "extensionProperties.odaPassword =
\"jkalyptra\";"
                        + "extensionProperties.odaURL = 
\"jdbc:oracle:thin:@paradigma5:1521:jkde\";"
                        + "extensionProperties.odaDriverClass = 
\"oracle.jdbc.driver.OracleDriver\";");
....

I compile the class but when i run the report throws these errors:

There are errors on the report page:
Error1:Missing extenion id in data source definition, JKalyptra
Error2:Data source JKalyptra is not defined
Error3:Data set Conexiones is not defined

What can i do?

Thanks for the attention.

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how
to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

_______________________________________________
birt-dev mailing list
birt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/birt-dev


Back to the top