Ytria logo DOCUMENTATION
⚠ This page requires javascript enabled in browser
Automation / All products Automation / Grid Actions

 

Tag: SuspendRedraw

The self-closing tag SuspendRedraw emulates the selection of the Suspend Grid Redraw option found in the toolbar and right-click menu of all flexYgrid enabled panels.

<SuspendRedraw="True"/>

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
TargetApplicable Grid CodeSets the target grid to carry out the action onNot mandatory:
If no target is set, the target will default to the main grid (for products containing a main grid)
ValueTrue/ FalseTo set, the flag to engage the actionMandatory
ServerAbbreviated server names (separated by comma)Only applicable in consoleEZ - see below
IndexPositive integerWindow index numberOnly applicable in consoleEZ - see below

Detailed Description

When engaging the SuspendRedraw action, a <SuspendRedraw="True"/> must come in tandem with a <SuspendRedraw="False"/> line in order to let the grid update; the grid will only update once the <SuspendRedraw="False"/> is encountered in the script.

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 Console="false" Application="databaseEZ" ApplicationVersion="16.5" Version="1.0">
<SuspendRedraw value="true"/>
<GroupBy ColumnID="D1"/>
<GroupBy ColumnID="D5"/>
<Filter columnID="D2" Mode="Contains" Text=".nsf"/>
<Sort columnID="I27" ascending="false"/>
<SuspendRedraw value="false"/>
</ytriaAutomation>

In the script above, to be executed on a databaseEZ grid that already has databases loaded, the SuspendRedraw action is engaged (by setting its value to "True" before the script carries out four successive grid actions). The grid will update with the resulting configuration only after the action <SuspendRedraw value="false"/> is encountered in the script.