Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Is called when a user navigates to the last field group in a form.
Syntax
public void lastField([int flags])
Run On
Client
Parameters
- flags
Type: int
An integer that specifies the process that is used to find the last field group; optional.
Remarks
If a field group is not found, the form is given focus.
Use one or more of the following bit-flag constants for the flags parameter. Use macros to define constants. For more information, see Macros in X++.
FINDCONTROL_CANEDIT= 0x0001
FINDCONTROL_CONTAINER= 0x0002
FINDCONTROL_CANDISPLAY= 0x0004
FINDCONTROL_SAMECONTAINER= 0x0008
FINDCONTROL_NODISPLAYTEST= 0x0010
FINDCONTROL_TABSTOP= 0x002
FINDCONTROL_SAMEPARENTCONTAINER= 0x0040
FINDCONTROL_ALLOWSYSHIDDEN= 0x0080
FINDCONTROL_SINGLELOOP= 0x0100
FINDCONTROL_NOTPARENTCONTAINTER= 0x0200
FINDCONTROL_ACTIVE= 0x0400
FINDCONTROL_VISIBLE= 0x0800
FINDCONTROL_SAMECONTROLTYPE= 0x1000
When the lastField method is called by the system, the FINDCONTROL_CANEDIT and FINDCONTROL_CANDISPLAY bit-flag constants are passed. These constants guarantee that the field group that is selected is visible and can be edited.
Override the method on a form to pass different bit-flag constants or to prevent the move to the last field group by preventing the super call.
To override this method on a form, right-click the Methods node below the form, click Override Method, and then click lastField.
For information about best practices for forms and code, see No Code in Forms.