Versions Compared

Key

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

...

  1. Open the template file located in <install_root>\plugins\com.nomagic.datahub.magicdraw\data\templates\relation.html. with any text editors.
  2. Type the following code in the highlighted area of the report template code fragment to add more attributes to the report template file. For example, if you want to add the Created Thru attributes into the report template file to include them in the DHLink Summary report, you must replace <Attribute name> with Created Thru.

    Code Block
    languagetext
    titleThe code for adding another attribute in the report template file
    <br/>$DataHubReportEngine.decorateHTMLTag($row.sourceElement.entity.getAttributeValue("<Attribute name>"))










    Note
    titleNote

    The name of the attribute you want to add in the report template file must be the same as the one that appears in the Cameo DataHub Properties tab.


    The attribute name, e.g., Created Thru, in the DataHub Properties tab must match the <Attribute name> in the report template code.


  3. Save the template file.

  4. Open the DHLink Summary dialog in MagicDraw to generate the DHLink Summary report.

...