FieldName

Form instance property of a popup form that specifies the field to which the popup window is bound. This can be the name of any field in the current form instance. This property can be set in ProcScript using newinstance. If not specified, the default is the current field.

FieldName="FieldName"

Usage

Dynamic? No
Dependencies: Window Type must be Popup.

Description

You can only set the FieldName property when creating a new instance of a popup form. For example, the following code sets the WindowType and FieldName properties of the new form instance:

;DETAIL trigger of FLD1
newinstance "DETAIL_FRM", "Details", "windowtype=popup;fieldname=FLD1"
activate "Details"

Popup forms are usually activated in the Detail trigger of a field. Double-clicking the field gives it focus (making it the current field) and fires the Detail trigger.

However, there may be cases when you want to activate a popup form for a field that does not have focus. In this case, you can specify the field name to ensure that the popup form is bound to the desired field.

Applies To

Popup Window

Related Topics