Muokkaa

Jaa


TestPage.No() Method

Version: Available or changed with runtime version 1.0.

Gets the No system action.

Syntax

Action :=   TestPage.No()

Parameters

TestPage
 Type: TestPage
An instance of the TestPage data type.

Return Value

Action
 Type: TestAction
The No system action.

Remarks

The No action is used to dismiss a modal page or test page.

The No method just retrieves the No system action, but does not execute it. To invoke the No action on the test page use the Invoke Method, as shown in the example below.

Example

The following example uses a handler method to dismiss the "Post and Send Confirmation" modal test page when invoked in code.

[ModalPageHandler]
procedure PostandSendPageHandlerNo(var PostandSendConfirmation: TestPage "Post and Send Confirmation")
begin
    PostandSendConfirmation.No.Invoke;
end;

TestPage Data Type
Invoke Method
Get Started with AL
Developing Extensions