Bearbeiten

Teilen über


TestPart Data type

Version: Available or changed with runtime version 1.0.

Represents a variable type that can be used to test Page Application Objects of type Part.

Instance methods

The following methods are available on instances of the TestPart data type.

Method name Description
Caption() Gets the caption of the test page.
Editable() Gets the runtime value of the Editable property on a test page.
Expand(Boolean) Expands rows on a test page.
FindFirstField(TestField, Any) Finds the first field in the data set that is displayed on a test page.
FindNextField(TestField, Any) Finds the next field in the data set that is displayed on a test page.
FindPreviousField(TestField, Any) Finds the previous field in the data set that is displayed on a test page.
First() Sets the current row of the test page as the first row in the data set.
GetField(Integer) Gets a field on a test page.
GetValidationError([Integer]) Gets the list of all validation error that occurred on a test page as a string.
GoToKey([Any,...]) Finds the row in a data set on the test page that is identified by the specified values.
GoToRecord(Record) Finds the specified record in a data set on a test page.
IsExpanded() Specifies if the current row on the test page is expanded.
Last() Sets the current row of the test page as the last row in the data set.
New() Sets the current row of the test page to an empty row in a data set.
Next() Sets the current row of the test page as the next row in the data set.
Prev() Sets the current row of the test page as the previous row in the data set.
Previous() Sets the current row of the test page as the previous row in the data set.
ValidationErrorCount() Gets the number of validation errors that occurred on the test page.

Get Started with AL
Developing Extensions