📚 SAP Business One SDK Help

AddEx Method
See Also 
FormType

A form type on which to listen for this event.

Length: 20 characters.

Description

Adds a form type on which you want to filter events.

For this filter's event type, you can add the forms to which this event applies. The event type is specified in the EventFilters.Add method.

Syntax

Visual Basic
Public Function AddEx( _
   ByVal FormType As String _
) As FormType

Parameters

FormType

A form type on which to listen for this event.

Length: 20 characters.

Remarks

Each SAP Business One form has a type, which is a unique ID for the form. For example, the type of the Purchase Order form is 142.

Each form can be open multiple times, and the application keeps a counter for each form type of the number of open instances. To get the number of forms open of the same type, use Form.TypeCount. Form objects pointing to different instances of the same type form have the same value in the TypeCount field.

To access a specific instance of a specific form type, use the Forms.GetForm method.

See Also