Tag: ShowTypeColumns

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
ValueTrue/ FalseSets the display mode for Type columnsMandatory

Detailed Description

NOTEThe sub-action ShowTypeColumns is roughly equivalent to the 'Hide Type Columns' button in the 'Values' panel. But instead of acting like a toggle, the action sets the state outright.

Also, this is only applicable when used as a nested child action within a Values script block. If it is used elsewhere, an error will occur.

Example Script

<YtriaAutomation Version="1.0" Application="scanEZ" ApplicationVersion="16.5" Console="False">
	<load server="ACME01/ACME" database="Mailtest.nsf"/>
	<focus target="tree" category="Documents" type="Memo"/>
	<Values KeepAlive="false">
		<SetParam Target="SelectDocumentItems" Field="AddItem" value="Form"/>
		<SetParam Target="SelectDocumentItems" Field="AddItem" value="From"/>
		<SetParam Target="SelectDocumentItems" Field="AddItem" value="DeliveredDate"/>
		<ShowTypeColumns value="false"/>
		<AddCustomColumn Name="Created By">
			<SetParam Field="TitleOptionType" Value="System"/>
			<SetParam Field="TitleOptionSystem" Value="Created By"/>
		</AddCustomColumn>
		<Evaluate/>
		<Export>
			<SetParam field="FilePath" value="D:scanEZ-Values.html"/>
			<SetParam field="ExportType" value="HTML"/>
			<SetParam field="SelectedRowsOnly" value="False"/>
		</Export>
	</Values>
</YtriaAutomation>
XML

In the script above, the database "Mailtest.nsf" will be loaded into scanEZ and the selection tree focus will be placed on the document category Memo. The Values operation will be launched on these documents and the Values grid's columns will be set to the items "Form", "From", and "Delivered Date". The ShowTypeColumns action will set the Type column display mode to "false". A custom column will then be added using the Note Info value "Created By". The Evaluate action will then trigger the custom column to populate with the individual values of this Note information. All rows within this grid will then be exported to an HTML file, and the Values dialog will close.