Users may choose to upload attachment files to items. Not only can attached image files be included in reports and documents, information about all attachments can be included as well. This article describes how to configure a report or document so that information about all attachments is included.
Prerequisites
- Familiar with the SystemWeaver meta model building blocks (e.g., Items, Parts and Attributes)
- An installation of the SystemWeaver Explorer client (swExplorer)
- Knowledge of XML
- Assignment of the SW Architect role in the server
- Completed the Report Generation - Introductory Training
- An attachment file repository is included in server installation
Any of the available field codes valid in the context of an attachment file can be included.
Example Configuration
<Report> <ForEachAttachment> <Text>Name: #{Name}</Text> <Text>CreatedBy: #{CreatedBy}</Text> <Text>CreationDate:#{CreationDate}</Text> <Text>Comment: #{Comment}</Text> <Text>FileSize: #{FileSize}</Text> <Text>RevisionNo: #{RevisionNo}</Text> <Text>Hash: #{Name}</Text> <Image/> </ForEachAttachment> </Report>
In context of an attachment file, <Image/> outputs an image file* as an image in the generated report. The following image file formats are supported: bmp, emf, ico, jpg, png, wmf.
Example Result