changes.mady.by.user user-52ec1
Saved on May 08, 2020
Saved on Oct 11, 2021
On this page
There are two methods that you can use to merge rows.
When you put the statement into a row, it will be set as a merged row in a specified number.
For example:
Template code:
#forrow($c in
$sorter.sort($Class))$c.name$tableprop.mergeRows($c.ownedElement.size())#set($count=0)
#foreach($attr in $c.ownedElement)#set($count = $count + 1)
$attr.name#if($count < $c.ownedElement.size())
Image Modified
When you put the statement into a row, it will be set as a merged row in a specified String of number. For example:
#set($a = $array.createArray())
#set($void = $a.add("A"))
#set($void = $a.add("B"))
#set($void = $a.add("C"))
mergeRows merges only existing cells in the same column and does not increase the number of rows or cells.
#forrow($package in $Package)
$tableprop.mergeRows("5")Package
In case there are three packages, the output will be:
Image Added