Tag: DeleteItems

The DeleteItems action, along with the applicable SetParam child actions, will emulate the process of deleting items triggered by selecting the Delete button in scanEZ's Field menu, Diff/Values panel, and toolbar.

	<SetParam field="Source" value="Body"/>

SetParam Options

Field NameCompatible Field ValuesValue DescriptionComment
SourceUser definableThe names of the items to delete. Multiple item names should be separated by a semicolon.Mandatory
NoTrimTrue/FalseThe checkbox option 'Advanced: Do NOT automatically trim entered field names'Not mandatory
NOTEIf omitted, the checkbox option 'Advanced: Do NOT automatically trim entered field names' will default to <SetParam field="NoTrim" value="False"/>.

Example Script

<?xml version="1.0" encoding="UTF-8"?>
<ytriaAutomation Application="scanEZ" ApplicationVersion="16.5" Version="1.0">
	<Load Server="ACME01/ACME" database="TestMemoDepo.nsf"/>
	<focus target="tree" category="Documents" type="Memo"/>
		<SetParam field="Source" value="Status"/>

In the script above, the database "TestMemoDepo.nsf" will be loaded into scanEZ, and the focus placed on the selection tree node for the document type "Memo". The DeleteItems action will delete the item named "Status" for all documents found in the focused category. The 'Advanced: Do NOT automatically trim entered field names' checkbox option will not be applied.