ErrorInfo.PageNo([Integer]) Method
Version: Available or changed with runtime version 8.0.
Specifies the page number that the error relates to.
Syntax
[PageNo := ] ErrorInfo.PageNo([PageNo: Integer])
Note
This method can be invoked using property access syntax.
Parameters
ErrorInfo
Type: ErrorInfo
An instance of the ErrorInfo data type.
[Optional] PageNo
Type: Integer
The page number of the ErrorInfo
Return Value
[Optional] PageNo
Type: Integer
The current page number of the ErrorInfo.
Remark
You use the PageNo
property when also using a show-it action with the AddNavigationAction
property. The PageNo
then specifies where the action takes the user when activated.
Example (set the PageNo property)
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
See Also
ErrorInfo Data Type
Actionable errors
Error handling
Get Started with AL
Developing Extensions
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour