Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
crosstab: how to style aggregation cells via api
jsherriff
I'm trying to figure out how to set properties like fontweight, backgroundColor, etc on the aggregation cells of a subtotal but can't figure out how to get to their respective DesignElementHandles. Can someone give me a pointer?
Here's the relevent code I use to create the subtotal elements:
CrosstabCellHandle subtotalCellHandle = dim.handle.addSubTotal(measures, levelFunctions);
ComputedColumnHandle subtotalBindingHandle = crosstabItem.getModelHandle().addColumnBinding(total, false);
DataItemHandle subtotalDataHandle = design.getElementFactory().newDataItem(total.getName());
subtotalDataHandle.setResultSetColumn(subtotalBindingHandle.getName());
Find more posts tagged with
Comments
jsherriff
Found it:
MeasureViewHandle measureView = crosstabItem.getMeasure( i );
for ( int j = 0; j < measureView.getAggregationCount( ); j++ )
AggregationCellHandle aggregationCell = measureView.getAggregationCell( j );