Extending the report to show a new property in the external transmittal report - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

This example shows how to add the document description property to the report output. The view definition, ExternalXmtlReportViewDef, needs to be updated to include the document description node. Use the Schema Editor to add the Description property from an associated edge definition, as seen in the following image.

This can be represented as the following:

Add property

By updating the view definition, a new <ReportAttribute> is added to the raw XML output for the <SPFReportItem> node as seen in the following example.

<ReportAttribute>

The above attribute can then be used in the XSL template to display the description for the document. Only a new document column will need to be added to the XSL.

New document column

Because the XSL has already been defined to iterate through all the <ReportAttribute> nodes for the document revisions, the new Description node is processed automatically.

<ReportAttribute> 2

By updating the view definition and XSL template, the report will now show Document Description as a new column in the Documents section of the report.

Report example