Tag: Search

The Search action will emulate selection of the Search options (i.e. Find All, Find First and Find Next) located in a grid toolbar or the right-click menu.

<Search Find="Next" Target="Grid">
	<Setparam Target="RegexGeneral" Field="Regex" Value="dom"/>
	<Setparam Target="RegexGeneral" Field="CurrentColumn" Value="False"/>
	<Setparam Target="RegexGeneral" Field="CaseSensitive" Value="False"/>
</Search>
XML

Tag Attributes

AttributesAttribute ValuesValue DescriptionComment
FindAll, First, NextType of search to executeNot mandatory - see detailed description
TargetApplicable Grid Code

N/A

Not mandatory – see detailed description
ServerAbbreviated server names (separated by comma)

N/A

Only applicable in consoleEZ - see detailed description
IndexPositive integerWindow index numberOnly applicable in consoleEZ - see detailed description

SetParam Options

AttributesAttribute ValuesValue DescriptionComment
RegExGeneralRegExGeneralDescribes the referenced dialog boxNot mandatory - see detailed description
RegExUser definedThe string to search for or the regex to be appliedMandatory
CurrentColumnTrue/False

N/A

Mandatory
CaseSensitiveTrue/False

N/A

Mandatory


Detailed Description

The action Search allows you to automate the 'Find All…', 'Find First…', and 'Find Next…' functions found in the toolbar of each grid panel, and in the right-click menu.



The type of search is selected by using the attribute Find.


SetParam child actions are used to set the values and options found in the dialogs of the possible searches.

The Server attribute is only applicable to consoleEZ, in which case it will be mandatory for Target="LogAnalyzer" or Target="VolumeAnalyzer".

The Index attribute is also only used in consoleEZ and is mandatory when using Target="LogAnalyzer" or Target="VolumeAnalyzer", it is the value found on the Log Analyzer and Volume Analyzer windows.


Example Script

<?xml version="1.0" encoding="UTF-8"?>
<ytriaAutomation Application="aclEZ" ApplicationVersion="16.5">
	<Load Server="ACME01/ACME" Select="True"/>
	<Select Lines="All"/>
		<Search Find="All" Target="SelectedACL">
			<Setparam Target="RegexGeneral" Field="Regex" Value="ytria"/>
			<Setparam Target="RegexGeneral" Field="CurrentColumn" Value="False"/>
			<Setparam Target="RegexGeneral" Field="CaseSensitive" Value="False"/>
		</Search>
</ytriaAutomation>
XML


In the script above, a 'Find All…' search using the string 'ytria' would be carried out on all contents of the Selected ACL grid in aclEZ.