Introduction

An item's attachments can be viewed via the View drop-down list by selecting the Attachments view



Two additional ways to view whether or not an item has attachments are described below.


Structure Tree Grid

There is no predefined attribute that you can use to view attachment file names in the tree grid, however, you can use Path Language to display the information, as shown below.

  1. Right-click on anywhere on the tree grid header row. 
  2. Select Expert > Add field Column

image

3. In the Add Field Column, enter:

?/item::.Select(Attachments).Join(',')
Item

Description

?
Activate the path language.
/item::  
Navigate from a node to its item (because the tree view contains SystemWeaver Node).
.Select()   
Transforms a list (item) into a new list(of attached files) by applying the given expression(Attachments) on each element in the first list.
Attachments 
Returns the attachments on an item or issue. Only the attachment objects are returned not the actual attachment data.
.Join(',')
Convert a list of strings to a string with a given delimiter.


Result:

image


Grid View

Another way to view attachment file names is via the Grid view. 

  1. Select Grids in the View drop-down. 
  2. Add a TextColumn that shows attachment files.


<Grid>   

    <Columns>     

        <ItemNameColumn width="200"/>     

        <TextColumn caption="Attachment Files" width="200">#{?Attachments.Join(',')}</TextColumn>   

    </Columns>     

    <ForEach select="/IDI">   

    <Row/>     

</ForEach> 

</Grid>


Result:

image

Similar to the Grid view, you can add attachments to a Report. For more information on this, search for "ForEachAttachment" in the Help.