편집

다음을 통해 공유


TestPage.Yes() Method

Version: Available or changed with runtime version 1.0.

Gets the Yes system action.

Syntax

Action :=   TestPage.Yes()

Parameters

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

Return Value

Action
 Type: TestAction
The Yes system action.

Remarks

The Yes action is used to confirm a modal page or test page.

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

Example

The following example uses a handler method to confirm the "Create Order From Sales" modal test page when invoked in code.

[ModalPageHandler]
procedure CreateOrderFromSalesModalPageHandler(var CreateOrderFromSales: TestPage "Create Order From Sales")
begin
    CreateOrderFromSales.Yes.Invoke();
end;

TestPage Data Type
Invoke Method
Get Started with AL
Developing Extensions