|
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.
<DeleteItems>
<SetParam field="Source" value="Body"/>
</DeleteItems>
SetParam Options
| Field | Field Value | Value Description | Comment |
| Source | User definable | The names of the items to delete. Multiple item names should be separated by a semicolon. | Mandatory |
| NoTrim | True/False | The checkbox option 'Advanced: Do NOT automatically trim entered field names' | Not mandatory |
| Note | If 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"/>
<DeleteItems>
<SetParam field="Source" value="Status"/>
</DeleteItems>
</ytriaAutomation>
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 will be 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.
|
|