Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
setting a dataset programatically
dlpraju
Hi ,
I want to draw charts dynamically.But while setting data set i am getting issue.I did as follows.
ElementFactory ef = designHandle.getElementFactory( );
ExtendedItemHandle extendedItemHandle =
ef.newExtendedItem( null, "Chart" );
try{
extendedItemHandle.getReportItem( ).setProperty( "chart.instance",newChart );
} catch( ExtendedElementException e )
{
e.printStackTrace( );
}
// Get an ODA data set and bind it to the chart
OdaDataSetHandle dataSet = ( OdaDataSetHandle )
designHandle.getDataSets( ).get( 0 );
try {
extendedItemHandle.setDataSet( dataSet );
} catch ( SemanticException e ) {
e.printStackTrace( );
}
Can anybody tell me the problem and how to set data set programatically.
Thank You,
Laxmipathi Raju
Find more posts tagged with
Comments
There are no comments yet