Variable: LastLoadingError
The LastLoadingError variable shows users the last loading error message.
XML
{%LastLoadingError%}
LastLoadingError resets whenever a new loading action is triggered via automation.
Attributes
|
Attributes |
Attributes Value |
Value Description |
|---|---|---|
|
KeepAlive |
True / False |
If KeepAlive is not set, error dialogs (on module opening, load more, etc..) are automatically closed. |
Detailed Description
In case of error, this shows this dialog:
[INSERT SCREENSHOT]
whereas the following script would have shown that dialog:
<ytriaAutomation Application="sapio365">
<SelectedShowDriveItemsUsers NewFrame="True" KeepAlive="True"/>
</ytriaAutomation>
[INSERT SCREENSHOT]
Note that {%LastLoadingError%} only contains the message part of the regular error dialog.
Example Script
XML
<ytriaAutomation Application="sapio365">
<SelectedShowDriveItemsUsers NewFrame="True">
<If Target="var" Test="{%LastLoadingError%}" Mode="notequals" Value="">
<MsgBox Title="Error" Type="Error" Message="{%LastLoadingError%}"/>
</If>
</SelectedShowDriveItemsUsers>
</ytriaAutomation>