title | description | ms.author | ms.date | ms.tgt_pltfrm | ms.topic | author |
---|---|---|---|---|---|---|
ErrorInfo.AddNavigationAction([Text]) Method |
Adds a navigation action for the error. |
solsen |
02/26/2024 |
na |
reference |
SusanneWindfeldPedersen |
Version: Available or changed with runtime version 11.0.
Adds a navigation action for the error.
ErrorInfo.AddNavigationAction([Caption: Text])
ErrorInfo
Type: ErrorInfo
An instance of the ErrorInfo data type.
[Optional] Caption
Type: Text
The text string that appears as the caption of the action in the error UI. The string can be a label that is enabled for multilanguage functionality.
You use the AddNavigationAction
property to implement a show-it action on the error dialog. For more information about how to develop actionable errors, see Actionable errors.
var
MyErrorInfo: ErrorInfo;
TheCustomDimensions: Dictionary of [Text, Text];
begin
// setup the error info object: Define Message, DetailedMessage etc.
// setup show-it action(s) for the error info object
ChangeNotAllowedErrorInfo.PageNo(PAGE::"MyPage");
ChangeNotAllowedErrorInfo.AddNavigationAction('Some caption');
Error(MyErrorInfo);
end
ErrorInfo Data Type
Actionable errors
User experience guidelines for errors
Error handling
Getting Started with AL
Developing Extensions