Ytria logo DOCUMENTATION
⚠ This page requires javascript enabled in browser
Automation / scanEZ Automation

 


Tag: CopyItems

The CopyItems action will emulate the selection of the Copy button found in the Diff/Values panel of scanEZ. Applicable SetParam child actions let you specify the items to copy.

<CopyItems>

    <SetParam field="Source" value="ParentForm"/>
    <SetParam field="Target" value="ParentFormCopy"/>
    <SetParam field="NoTrim" value="True"/>
</CopyItems>

SetParam Options

Field NameCompatible Field ValuesValue DescriptionComment
SourceUser definableSource field (item) names. Separate multiple field names with a semicolon.Mandatory
TargetUser definableThe names for the target fields. Mandatory:
The names given here will correspond to fields in the same placement in the source list.
NoTrimTrue/FalseThe state of the Advanced option checkbox.

Example Script


<?xml version="1.0" encoding="UTF-8"?>
<ytriaAutomation Application="scanEZ" ApplicationVersion="16.5" Version="1.0">
<Load Server="ACME01/ACME">
<Load Database="dbtest\maildbtest.nsf" Select="True"/>
</Load>
<focus target="tree" category="Documents" type="Reponse"/>
<CopyItems>
<SetParam field="Source" value="ParentForm"/>
<SetParam field="Target" value="ParentFormCopy"/>
<SetParam field="NoTrim" value="True"/>
</CopyItems>
</ytriaAutomation>

In the script above, the database "dbtest\maildbtest.nsf" will be loaded and the selection tree focus placed on the "Response" document category in the selection tree. The CopyItems action will then trigger the field "ParentForm" to be copied and added into all the Response-type documents using the name "ParentFormCopy" with the option to not automatically trim the entered field names enabled.