Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
dataSet.getColumnMetaData().getColumnName(): ArrayIndexOutOfBoundsException
Migrateduser
Hi All,
I have implemented a dataset event handler for a report:
public class DataSetHandler extends DataSetEventAdapter
The event handler is used to output the column names of the dataset, according to
IColumnMetaData metaData = dataSet.getColumnMetaData();
mColumnCount = metaData.getColumnCount();
for(int i = 0;i < mColumnCount;i++) {
System.out.println(metaData.getColumnName(i));
}
getColumnCount() returns 8 (correctly), but getColumnName(i) throws an ArrayIndexOutOfBoundsException
While debugging, I see that the columnCount variable of the ResultMetaData class is -1 and yet 8 is returned for the getColumnCount.
Any clue on how to work around this or if a fix is available?
Best regards
Jonas Bergstrom
Find more posts tagged with
Comments
There are no comments yet