Skip to main content
Skip table of contents

Select/Deselect Using Regular Expression

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.




Detailed Description

The Regex selection will make use of the CheckBox Selection mechanics.

Tag Attributes

AttributesAttribute ValueValue Description
RegexUser definableSimple test string to search select/unselect - Required
CaseSensitiveTrue/False

N/A - Not Required - default is "False"

Example Scripts

XML
<UnselectByRegex Regex="3"/>
XML
<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.


JavaScript errors detected

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

If this problem persists, please contact our support.