MainFrame: set execution context to MainFrame

Tag: MainFrame

The MainFrame action forces the current automation context to be set to the main frame.

When Ytria automation launches a sapio365 module (e.g. Users after <ShowUsers>, the automation context moves to this module.

To run a new action only available from the main window (e.g. launching second Groups module after having launched a Group module), enclose the new module automation in <Mainframe>.


XML
<MainFrame/>

Example Script

XML
<ytriaAutomation Application="sapio365">
	<ShowGroups>
		<GroupBy ColumnID="TYP"/>
		<GroupBy ColumnID="AES"/>
		<MainFrame>
			<ShowGroups>
				<GroupBy ColumnID="TYP"/>
				<GroupBy ColumnID="AES"/>
				<MainFrame>
					<!-- here do mainframe stuff like SendMail...-->
				</MainFrame>
				<Sort ColumnID="displayName" Ascending="true"/>
			</ShowGroups>
		</MainFrame>
		<Sort ColumnID="displayName" Ascending="true"/>
	</ShowGroups>
</ytriaAutomation>

A MainFrame action cannot contain another MainFrame action.