Düzenle

Aracılığıyla paylaş


TestRequestPage Data type

Version: Available or changed with runtime version 1.0.

Stores test request pages. A test request page part is a logical representation of a request page on a report. A test request page does not display a user interface (UI). The subtype of a test request page is the report whose request page you want to test.

Instance methods

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

Method name Description
Cancel() Gets a TestAction representing an action on the Page under Test.
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. The row is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.
FindNextField(TestField, Any) Finds the next field in the data set that is displayed on a test page.The row is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.
FindPreviousField(TestField, Any) Finds the previous field in the data set that is displayed on a test page. The row is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.
First() Sets the current row of the test page as the first row in the data set.
GetValidationError([Integer]) Gets the validation error that occurred on a test page.
GoToKey([Any,...]) Finds the row in a data set on the test page that is identified by the specified values. The key is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.
GoToRecord(Record) Finds the specified record in a data set on a test page. The record is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.
IsExpanded() Specifies if rows on a test page are 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.
OK() Gets a TestAction representing an action on the Page under Test.
Preview() Gets a TestAction representing an action on the Page under Test.
Previous() Sets the current row of the test page as the previous row in the data set.
Print() Gets a the Print representing an action on the Page under Test.
SaveAsExcel(Text) Saves a report as a Microsoft Excel (.xls) file.
SaveAsPdf(Text) Saves a report as an Adobe Acrobat (.pdf) file.
SaveAsWord(Text) Saves a report as a Microsoft Word (.doc) file.
SaveAsXml(Text, Text) Saves a report data set and the labels on a report as two XML (.xml) files.
Schedule() Gets a TestAction representing an action on the Page under Test.
ValidationErrorCount() Gets the number of validation errors that occurred on the test page.

Get Started with AL
Developing Extensions