count of columns and get column names in fetched dataset

edited December 31, 1969 in Designing Analytics Reports
Hi,
I am trying to generate reports(table) programatically using birt runtime api's(kind of Adhoc reporting ), where the user can enter any SQL query , application should connect to the DATASOURCE and fetch the DATASET based on the query the end user is going to enter.
here is where i am facing issue, after fetching the DATASET I am not being able to fetch the number of columns present in the fetched DATASET.I have tried using getColumnMetaData but could'nt succeed.
can any one please guide me to come out of this problem, all i have is OdaDataSetHandle with which i must fetch the count of columns and column names(i.e, all metadata regarding the DATASET).

Thanks in advance.

Comments

Sign In or Register to comment.