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

ErrorInfo Data Type
Actionable errors
Error handling
Get Started with AL
Developing Extensions