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)
Change row color in table
Rapporter
Hi Everyone,
I am generating my report through RE API. I want to change the colour of my detail row.how can i do it. Following code is binding data to details row.
TableHandle table = (TableHandle) objReportDesignHandle.findElement(strTableName);
RowHandle tabledetail = (RowHandle) table.getDetail().get(0);
for (int i = 0; i < objArrList.size(); i++) {
CellHandle cell = (CellHandle) tabledetail.getCells().get(i);
DataItemHandle data = designFactory.newDataItem((new StringBuilder("data_")).append(
(String) objArrList.get(i)).toString());
data.setResultSetColumn((String) objArrList.get(i));
cell.getContent().add(data);
cell.setProperty("textAlign", "center");
cell.setProperty("fontSize", "smaller");
cell.setProperty("backgroundColor", "#FFFFFF");
}
here we are building the report by taking one column at a time. How can I make details rows by taking row at a time.
Regards,
Surabhi
Find more posts tagged with
Comments
There are no comments yet