Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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



Back to the top