on 12-15-2015 3:26 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.