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
Grouping column value not on same line as data column
Migrateduser
Grouping column not on same line as data column<br />
<br />
<br />
So I have a table that looks like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>col1 col2 col3
A
X 1
X 1
B
Y 2
Y 2
C
Z 3
Z 3</pre>
<br />
The code that produces the table above is below:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>TableGroupHandle group = elementFactory.newTableGroup( );
group.setName("col1Group");
group.setKeyExpr( "dataSetRow[\"col1\"]" );
group.setInterval("none");
group.setSortDirection(DesignChoiceConstants.SORT_DIRECTION_ASC);
group.setRepeatHeader(true);
dataTable.getGroups().add(group);
RowHandle grpHdrHandle = elementFactory.newTableRow(dataCols.size());
CellHandle tblCellHandle = (CellHandle) grpHdrHandle.getCells().get(0);
tblCellHandle.setDrop(DesignChoiceConstants.DROP_TYPE_DETAIL);
DataItemHandle data0 = elementFactory.newDataItem(null);
data0.setResultSetColumn("col1");
tblCellHandle.getContent().add(data0);
group.getHeader().add(grpHdrHandle);
RowHandle groupFooter = elementFactory.newTableRow( dataCols.size() );
String groupFooterPadding=repMetaData.getDataGroupPadding();
groupFooter.getHeight().setStringValue(groupFooterPadding);
group.getFooter().add(groupFooter);
</pre>
<br />
How do I get it to look like this instead,i.e starting on same line?<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>col1 col2 col3
A X 1
X 1
B Y 2
Y 2
C Z 3
Z 3</pre>
Find more posts tagged with
Comments
There are no comments yet