Tag: SelectByRegex or UnselectByRegex
The SelectByRegex and UnselectByRegex, actions along with applicable SetParam child actions, let you automate the 'Select/Unselect using Regular Expression' function found in both the toolbar and CheckBox Selection menu of scanEZ.
The Regex selection will make use of the CheckBox Selection mechanics.
|Attributes||Attribute Value||Value Description|
|Regex||User definable||Simple test string to search select/unselect - Required|
N/A - Not Required - default is "False"
<YtriaAutomation> <Load Server="ACME01/ACME" Database="Mailtest.nsf"/> <focus target="tree" category="Documents" type="Appointment"/> <ChangeDocumentTitle> <Setparam Field="TitleOptionType" Value="Field"/> <Setparam Field="FieldAttribute" Value="Value"/> <Setparam Field="TitleOptionFieldName" Value="AppointmentType"/> </ChangeDocumentTitle> <SelectByRegex Regex="3"/> <Delete Checkbox="true" NoDeletionStubs="true" DeleteResponses="true"/> </YtriaAutomation>
In the script above, the database "Mailtest.nsf" will be loaded into scanEZ and the focus will be placed on the "Appointment" document type. The displayed selection tree titles for these documents will be changed to display the value of the field "AppointmentType" contained in each document. The action SelectByRegex will be launched on these titles within the selection tree to find and select those documents whose titles contain the string "3". They, as well as all of their responses, will then be deleted without creating deletion stubs.