cancel
Showing results for 
Search instead for 
Did you mean: 

What does FormTypeEx means in Sap B1

Former Member
0 Kudos

Hi Experts,

Im just new in developing  SAP addon. I would like to know what FormTypeEx Means in Sap Business One in SDK and where can I find it in form property in Sap Business One Studio?

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi John,

FormTypeEx = FormType

In Business One Studio, it is in the property of the Form.

The name of the property is "Type" located just above the UniqueID.

The purpose of this is to classify your form. This will let your know how to handle this form.

Lets take example.

AR Invoice Form (FormType = 133)

You can open up multiple AR invoice forms at one time. The unique ID of each of the forms is different. But they are all of the FormType =133.

When you get an event thrown to your add on.

You need to know what form it is so that you can handle it correctly.

UniqueID cannot be used here because UniqueID is generated at runtime.

FormType is static, thus you know that this form is an Invoice Form.

Regards

Edy

Former Member
0 Kudos

Thank you Edy for your reply. What do you mean about "UniqueID cannot be used here because UniqueID is generated at runtime."

edy_simon
Active Contributor
0 Kudos

Hi John,

Form has 2 property that can be used to identify the form.

1. Form UniqueID

2. Form Type

Each form opened in SBO Application has its own unique id which is the 'Form UniqueID'

When you know the UniqueID, you can reference the specific form in you add-on, and then use this reference to manipulate the form itself.

Everytime you open up a form, the form is assigned a uniqueid randomly (Unless you specify your user form UniqueID when designing - we'll talk about this later).

This uniqueid does not always point to a specific form. It may currently for the AR Invoice form. If you restart your SBO, the same UniqueID may point to a SalesOrder form.

Hence you can not use the UniqueID in your code as an identifier to a specific form.

I hope you understand what i mean.

As for your own form, you can actually pre-assigned a UniqueID to your form when designing your form. As a matter of fact, all of the SAP sample found in the SDK folder assigns a UniqueID to the form. Using this, you can identify your form in your program.

The draw back of this is, you can only open up 1 instance of your form at any one time.

To allow multiple instance of the form opened at the same time, you may not pre-assigned the UniqueID. Leave this property blank and SBO will randomly assigned one for you when the form opened.

Regards
Edy

Former Member
0 Kudos

wow thank you very much edy for your reply.

Answers (0)