Tag: ConfigureGrid

The ConfigureGrid function is a synonym to GridDataComposition from grid XML config file. It forces you to save your grid composition, and then to load the file. This can result in you to having one file for the automation and one file for the grid composition.


<ConfigureGrid/>
XML

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
TargetN/AUniquely identifies the grid (see each product’s grid codes). Not mandatory (then addresses the main grid or the current frame grid)N/A

Also uses all parameters found in a grid XML GridDataComposition action.

Tag: ConfigureColumn / ConfigureGrid

The ConfigreGrid and the ConfigureColumn tags let you to embed such grid composition directly inside of your automation (rather than linking to an external file).


AttributesAttribute ValueValue DescriptionComment
CoulmnIDN/AColumn UID - MandatoryN/A

Also uses all parameters found in a grid XML GridDataComposition action and all the associated sub-actions.(SetPAram, SetColumnFormat, Filter).

- The param Title is ignored in regular automation
- The order of ConfigureColumn actions is not relevant (in a grid XML, it indicates the column position - in a regular script it does not matter)
- It may be wise to use <SuspendRedraw value="true"/> and <SuspendRedraw value="false"/> to save on grid udpate time if several of these actions are used in a row.

Detailed Description

How to use:
- Open a grid XML file
- Copy the GridDataComposition as a ConfigureGrid action, if grid cfg is wanted and paste into your regular XML script
- Copy each AddColumn block as a ConfigureColumn action if column cfg is wanted and paste into your regular XML script
- Try it

ConfigureColumn actions are not expected to be embedded in a ConfigureGrid action.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ytriaAutomation Application="sapio365">
	<SuspendRedraw value="true"/>
	<ConfigureGrid ColIDSortGroupingsBySummary="-1" DisplayMode="0" FrozenColIndex="2" GCVDIsMinimized="True" Grid="MessagesGrid" GridDataCompositionVersion="17" GroupsAndTools="True" 
	HighlightSelectedColumns="False" SetHierarchyView="False" SetTravelSelection="True" ShowColumnTitle="False" ShowEmptyGroups="False" ShowFocusColTooltip="False" 
	ShowGroupCounters="True" ShowSingleRowGroups="True" ShowStatusBar="True" SortGroupingsByCount="False" SortGroupingsBySummary="False" SortMultivaluesByCount="False" 
	StatusBarFlags="30" Width="250"/>
	<ConfigureColumn ColumnID="sender" TitleDisplayed="From">
		<SetParam Visible="True"/>
		<SetParam Autoresize="False"/>
		<SetParam ForceAlphaSort="False"/>
		<SetParam Width="100"/>
		<SetColumnFormat Type="TFMTGrouping"/>
		<SetColumnFormat Type="NFMTGrouping"/>
		<SetColumnFormat CBX_FMT_CBXSortFlag="0" Type="CheckBoxFmtGrouping"/>
		<SetColumnFormat TextAlignment="0" TextCase="0" TextColor="4294967295" TextNotesName="False" Type="TextFmtGroup"/>
		<SetColumnFormat TextAlignment="0" TextCase="0" TextColor="4294967295" TextNotesName="False" Type="TextFmtGroupSummary"/>
		<SetColumnFormat Type="TFMTRegular"/>
		<SetColumnFormat Type="NFMTRegular"/>
		<SetColumnFormat CBX_FMT_CBXSortFlag="0" Type="CheckBoxFmtRegular"/>
		<SetColumnFormat Type="HyperlinkFmtRegular"/>
		<SetColumnFormat TextAlignment="0" TextCase="0" TextColor="4294967295" TextNotesName="False" Type="TextFmtRegular"/>
		<Filter Applied="False" Enabled="True" Mode="Regex" Regex=""/>
		<Filter Mode="Empty"/>
		<Filter Applied="False" Begins="" Contains="" Enabled="False" Ends="" Equals="" Mode="Text" NotBegins="" NotContains="" NotEnds="" NotEquals=""/>
		<Filter Applied="False" Enabled="True" Equals="" GreaterOrEquals="" GreaterThan="" LessOrEquals="" LessThan="" Mode="Number" NotEquals=""/>
		<Filter Applied="False" Enabled="False" Equals="" GreaterOrEquals="" GreaterThan="" LessOrEquals="" LessThan="" Mode="Date" NotEquals=""/>
		<Filter Applied="False" Enabled="False" Equals="" GreaterOrEquals="" GreaterThan="" LessOrEquals="" LessThan="" Mode="Time" NotEquals=""/>
		<Filter Applied="False" Days="" Enabled="False" Hours="" Minutes="" Mode="LastFrom" Months="" Years=""/>
	</ConfigureColumn>
	<SuspendRedraw value="false"/>
</ytriaAutomation >
XML