Modifier

Partager via


TestField Data type

Version: Available or changed with runtime version 1.0.

Represents a testable field on a page.

Instance methods

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

Method name Description
Activate() Activates a field on a test page.
AsBoolean() Converts the value in a field on a test page to a Boolean data type.
AsDate() Converts the value in a field on a test page to a Date data type.
AsDateTime() Converts the value in a field on a test page to a DateTime data type.
AsDecimal() Converts the value in a field on a test page to a Date data type.
AsInteger() Converts the value of the field on a test page to an Integer data type.
AssertEquals(Any) Asserts that the value in a field on a test page equals a specified value.
AssistEdit() Provides assist-edit functionality to a field on a test page.
AsTime() Converts the value in a field on a test page to a Time data type.
Caption() Gets the current caption of the field as a String.
Drilldown() Applies drill-down capability for a field on a test page.
Editable() Gets the editable state for the field.
Enabled() Gets the enabled state for the field.
GetOption([Integer]) Gets the options for a field on a test page.
GetValidationError([Integer]) Gets the validation error that occurred on a test page.
HideValue() Gets the hide value state for the field.
Invoke() Invokes the default action on the field.
Lookup() Provides a lookup window for a text box on a test page.
Lookup(RecordRef) Calls the OnAfterLook trigger with the selected record
OptionCount() Gets the number of options in a field on a test page.
SetValue(Any) Sets a value for a field on a test page.
ShowMandatory() Gets the ShowMandatory state for the field.
ValidationErrorCount() Gets the number of validation errors that occurred on the test page.
Value([Text]) Gets or sets the value of this field.
Visible() Gets the visible state for the field.

Get Started with AL
Developing Extensions