RunScript: button that launches another script

Creates a button that launches another script.

The dialog is refreshed after this script is executed.

The content of the dialog is updated if it depends on variables or lists modified by this script.

When the dialog opens:

image-20230202-195239.png

After clicking the button:

image-20230201-232228.png
XML
	<UserInput Title="SELECT SITE">
		<Variable name="SiteButton" valueLabel="Click to get sites list" Label="Get sites" Tooltip="Search sites" Type="RunScript" Execute='MainFrame/365-showSites-List.xml'/>
		<Variable name="SelectedSite" Label="Site" Type="CheckList" ListName="SelectedSites">
			<ListItem ListName="List_Sites" value="v_SiteName"/>
		</Variable>
	</UserInput>


The Execute parameter must contain:

  • the reference of the job to run when starting from a job (sapio365 only)

  • the path of the script to run when starting from an XML file

  • executable XML from a CDATA entry directly from the current script