Home » Archived » BIRT » ODA Driver's IResultSetMetaData.getColumnLabel return values being ignored by BIRT + some other ques
ODA Driver's IResultSetMetaData.getColumnLabel return values being ignored by BIRT + some other ques [message #253305] |
Thu, 23 August 2007 05:51  |
Eclipse User |
|
|
|
Originally posted by: firstname.lastname.napa.fi
Hi!
Implementing an ODA driver, I have some questions.
First, no matter what I return from IResultSetMetaData#getColumnLabel,
it seems to be totally ignored by BIRT. When
I create a data set, the display names for the columns are empty and data
set column names are used for column labels when creating a table based on
the data set. What am I missing?
A follow up question: many the columns in tables in my data source
contain a unit in addition to their name. That
is actually what I am trying to add to column label, e.g. the name of the
column could be "length" and the label
like this (name and unit on separate lines):
length
[m]
I got it working by editing the .rptdesign xml source, inserting a
newline into the column label. However, I can't
expect the users to do that manually for every column.
Another thing: if I implement IDataSetMetaData#getDataSourceObjects,
does BIRT use it for anything? I.e. is it any use implementing
that method if I intend to use my ODA driver solely w/ BIRT?
And yet another: every now and then, running BIRT RCP designer, I get
"java.lang.OutOfMemoryError: PermGen space". Usually, AFAIK, this
means too many classes are loaded and none can be gc:d. Is this a known
issue? Or could it be my driver's fault? I don't think
I'm using/loading an excessive amount of classes.
I'm using BIRT 2.2, java 1.5.0_12, win xp sp 2.
-Antti-
|
|
|
Re: ODA Driver's IResultSetMetaData.getColumnLabel return values being ignored by BIRT + some other [message #253364 is a reply to message #253305] |
Thu, 23 August 2007 16:02   |
Eclipse User |
|
|
|
Antti,
RE: mapping the value of IResultSetMetaData#getColumnLabel to a column
definition in a DataSetDesign, please open a bug in Bugzilla.
In the meantime, you can extend your custom ODA designer to assign the
column label value to each ColumnDefinition in the
oda.design.DataSetDesign.ResultSetColumns instance. Use the API method in:
ColumnDefinition.DataElementAttributes.DataElementUIHints.se tDisplayName.
(If you are using the code generated by the ODA Template Wizard, see
CustomDataSetWizardPage. updateResultSetDesign method.)
BIRT maps the display name set in the DataElementUIHints to its data set
definition in a report design.
BIRT does not currently consume the info provided by
oda.IDataSetMetaData#getDataSourceObjects.
Linda
"Antti Karanta" <firstname.lastname@napa.fi> wrote in message
news:op.txiazbad63e0vv@nw17.napa.fi...
>
>
> Hi!
>
> Implementing an ODA driver, I have some questions.
>
> First, no matter what I return from IResultSetMetaData#getColumnLabel,
> it seems to be totally ignored by BIRT. When
> I create a data set, the display names for the columns are empty and data
> set column names are used for column labels when creating a table based on
> the data set. What am I missing?
> A follow up question: many the columns in tables in my data source
> contain a unit in addition to their name. That
> is actually what I am trying to add to column label, e.g. the name of the
> column could be "length" and the label
> like this (name and unit on separate lines):
>
> length
> [m]
>
> I got it working by editing the .rptdesign xml source, inserting a
> newline into the column label. However, I can't
> expect the users to do that manually for every column.
>
>
> Another thing: if I implement IDataSetMetaData#getDataSourceObjects,
> does BIRT use it for anything? I.e. is it any use implementing
> that method if I intend to use my ODA driver solely w/ BIRT?
>
>
> And yet another: every now and then, running BIRT RCP designer, I get
> "java.lang.OutOfMemoryError: PermGen space". Usually, AFAIK, this
> means too many classes are loaded and none can be gc:d. Is this a known
> issue? Or could it be my driver's fault? I don't think
> I'm using/loading an excessive amount of classes.
>
>
> I'm using BIRT 2.2, java 1.5.0_12, win xp sp 2.
>
>
>
> -Antti-
|
|
| | |
Goto Forum:
Current Time: Mon Jul 14 18:07:31 EDT 2025
Powered by FUDForum. Page generated in 0.03768 seconds
|