Editar

Compartir vía


FilterPageHandler attribute

Version: Available or changed with runtime version 1.0.

Specifies that the method is a FilterPageHandler method, which handles a specific filter page. The FilterPageHandler tests the UI that is generated by a FilterPageBuilder Data Type.

Applies to

  • Method

Note

The FilterPageHandler attribute can only be set inside codeunits with the SubType property set to Test.

Syntax

Version: Available or changed with runtime version 1.0.

[FilterPageHandler]
procedure FilterPageHandler(var Record1: RecordRef [; var Record2: RecordRef] [; var Record3: RecordRef] [; var Record4: RecordRef] [; var Record5: RecordRef] [; var Record6: RecordRef] [; var Record7: RecordRef] [; var Record8: RecordRef] [; var Record9: RecordRef] [; var Record10: RecordRef]) : Boolean;

Important

The above signature requires the FilterPageHandler method to be global. For more information, see Local and global scope in AL methods.

Arguments

Record1
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record10
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record2
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record3
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record4
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record5
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record6
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record7
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record8
 Type: RecordRef
Holds the record of the filter page.

[Optional] Record9
 Type: RecordRef
Holds the record of the filter page.

Remarks

The FilterPageHandler method is called when a filter page is invoked in the code. It tests the UI that is generated by a FilterPageBuilder data type.

You use handler methods to automate tests by handling instances when user interaction is required by the code that is being tested by the test method. In these instances, the handler method is run instead of the requested user interface. The handler method should simulate the user interaction for the test case, such as validating messages, making selections, or entering values. You declare a handler type attribute on the method. For more information about handler methods, see Create Handler Methods.

AL Method Reference
Method Attributes
Test Codeunits and Test Functions