⚠ This page requires javascript enabled in browser
Automation / scanEZ Automation


Tag: ViewDocumentHierarchy

The ViewDocumentHierarchy action, along with the applicable SetParam child actions, lets you automate the 'View Hierarchy' function in scanEZ.

<ViewDocumentHierarchy KeepAlive="True"/>
<select lines="all"/>
<SetParam target="ExportToFile" field="FilePath" value="D:\temp-exports\scanEZ-hierarchy2.html"/>
<SetParam target="ExportToFile" field="ExportType" value="HTML"/>
<SetParam target="ExportToFile" field="ExportContent" value="SelectedRows"/>

Detailed Description

All compatible grid actions can be carried out as nested child actions within a ViewDocumentHierarchy script block.

A MySelection action script block can be nested within this action block to add selections to a virtual My Selection folder.

Example Script

<ytriaAutomation Version="1.0" Application="scanEZ" ApplicationVersion="16.5.0" Console="False">
<load server="ACME01/ACME" database="mail\daltmann.nsf"/>
<focus target="tree" category="Documents" type="Memo"/>
<ViewDocumentHierarchy KeepAlive="True"/>

In the script above, the mail database "daltmann.nsf" will be loaded into scanEZ and the focus placed on the Document category of "Memo". The action ViewDocumentHierarchy will launch the 'View Hierarchy' function on the documents within the focused category, and the resulting grid will remain open awaiting user input.