Skip to main content
Skip table of contents

Copy Items

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.



SetParam Options

Field NameCompatible Field ValuesValue Description
SourceUser definableSource field (item) names. Separate multiple field names with a semicolon - Required
TargetUser definableThe names for the target fields - Required: 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 Scripts

XML
<CopyItems>
	<SetParam field="Source" value="ParentForm"/>
	<SetParam field="Target" value="ParentFormCopy"/>
	<SetParam field="NoTrim" value="True"/>
</CopyItems>
XML
<ytriaAutomation>
	<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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.