Versions Compared

Key

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

...

You can retrieve other diagram table types by using the complete code shown below for getting values from the Generic Table:

Image Added

The complete code for getting values from the Generic Table.
#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
Code Block
languagetext
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”)


...