Skip to main content
Skip table of contents

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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.