TestRequestPage Data Type

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.

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

Method name Description
New() Sets the current row of the test page to an empty row in a data set.
ValidationErrorCount() Gets the number of validation errors that occurred on the test page.
GetValidationError([Integer]) Gets the validation error that occurred on a test page.
Caption() Gets the caption of the test page.
Next() Sets the current row of the test page as the next row in the data set.
Previous() Sets the current row of the test page as the previous row in the data set.
First() Sets the current row of the test page as the first row in the data set.
Last() Sets the current row of the test page as the last row in the data set.
IsExpanded() Specifies if rows on a test page are expanded.
Expand(Boolean) Expands rows on a test page.
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.
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.
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.
Editable() Gets the runtime value of the Editable property on a test page.
SaveAsPdf(String) Saves a report as an Adobe Acrobat (.pdf) file.
SaveAsWord(String) Saves a report as a Microsoft Word (.doc) file.
SaveAsExcel(String) Saves a report as a Microsoft Excel (.xls) file.
SaveAsXml(String, String) Saves a report data set and the labels on a report as two XML (.xml) files.
OK() Gets a TestAction representing an action on the Page under Test.
Cancel() Gets a TestAction representing an action on the Page under Test.
Print() Gets a the Print representing an action on the Page under Test.
Preview() Gets a TestAction representing an action on the Page under Test.
Schedule() Gets a TestAction representing an action on the Page under Test.

See Also

Getting Started with AL
Developing Extensions