Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Generic Table Export dialog
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
languagetext
#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
titleNote

You can customize line of code, e.g., by adding diagram table types to get the Metric Table or Instance Table, as shown below:

Code Block
languagetext
#if($diagram.diagramType == “Metric Table” || $diagram.diagramType == “Instance Table”)