Tag: SelectbyFile

The SelectbyFile function selects or unselects tree items according to the content of a CSV or Excel file. The script must first expand and focus on the parent node of the tree section that needs to be matched to the CSV/Excel file content. Changing the tree node titles might also be necessary.


<SelectByFile FilePath="D:\Temp\scanEZ-selectTreeFile.csv" FileColumnIndex="2" StartsWith="true"/>
XML

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
FilePath
CSV or Excel file with the data to be used for selection in the tree Mandatory
HasHeadersTRUE / FALSE (Defaults to TRUE)N/AN/A
FileColumnIndex
Column index in CSV or Excel file (starts at 0)Mandatory
UnselectTRUE / FALSE (Defaults to FALSE)N/AN/A
CaseSensitiveTRUE / FALSE (Defaults to FALSE)N/AN/A
StartsWithTRUE / FALSE (Defaults to FALSE)N/AN/A
SelectFirstTRUE / FALSE (Defaults to FALSE)N/AN/A
KeepAliveTRUE / FALSE (Defaults to FALSE)N/AN/A

Detailed Description

All parameters can also be set in SetParam children actions.


<YtriaAutomation>
	<Load Database="Dev\Team\YtriaAut.nsf" Server="NOTESAPP/YTRIA"/>
	<Expand target="tree" category="Documents"/>
	<Focus target="tree" category="Documents"/>
		<ChangeDocumentTitle>
			<Setparam Field="TitleOptionType" Value="Field"/>
			<Setparam Field="FieldAttribute" Value="Value"/>
			<Setparam Field="TitleOptionFieldName" Value="Subject"/>
		</ChangeDocumentTitle>
	<!--SelectByFile FilePath="D:\Temp\scanEZ-selectTreeFile.csv" HasHeaders="false" FileColumnIndex="2" UnSelect="true" CaseSensitive="true" StartsWith="true" SelectFirst="true"/-->
	<SelectByFile FilePath="D:\Temp\scanEZ-selectTreeFile.csv" FileColumnIndex="2" StartsWith="true"/>
	<!--Delete Checkbox="true" NoDeletionStubs="true" DeleteResponses="true"/-->
</YtriaAutomation>
XML