Page History
...
The Generic Table Export dialog.
You can retrieve other diagram table types by using the complete code shown below for getting values from the Generic Table:
Code Block | ||
---|---|---|
| ||
#import('generic', 'com.nomagic.reportwizard.tools.GenericTableTool')
#foreach($diagram in $Diagram)
#if($diagram.diagramType == "Generic Table")
#set($table = $generic.getTable($diagram))
$diagram.name
#forcol($id in
$table.getVisibleColumnIds())$table.getColumn($id)#endcol
#forrow($row in $table.getRows())
#forcol($id in $table.getVisibleColumnIds())
$table.getValueAsString($row, $id)
#endcol#endrow
#end
#end |
Note | |||||
---|---|---|---|---|---|
| |||||
You can customize line of code, e.g., by adding diagram table types to get the Metric Table or Instance Table, as shown below:
|