PT Sterling Tulus Cemerlang
www.sterling-team.com

Phone
+62-877-8655-5055
+62 (21) 580-6055

Email
sales-enquiry@sterling-team.com

Address
Sampoerna Strategic Square
South Tower 18th
Jl Jend. Sudirman kav 45-46
Jakarta 12930 - Indonesia

450+ FREE Tips for you from Sterling Tulus Cemerlang (STEM) - SAP Indonesia Gold Partner, and Become SAP B1 Super User

Usability of ‘AffectsFormMode’ Property

SAP Business One Tips Usability of affectsformmode property

We can add many things when creating Add-on in SAP Business One, i.e. Form, Button, Text Field, Folder Tab, and so on. Every Item we add in SAP screen, it will affect Form Mode by default. For example, when we view a document in SAP, Form Mode by default is OK Mode. When there is some Text Field which value being changed or filled, Form Mode will be changed into Update Mode.

SAP Business One Tips - Usability of 'AffectsFormMode' Property

SAP Business One Tips – Usability of ‘AffectsFormMode’ Property

Besides Text Field, even the Folder Tab we add into the screen can also affect Form Mode. For example, when we view a document in SAP, then we select or click our Customized Folder Tab, Form Mode will be changed into Update Mode too.

SAP Business One Tips - Usability of 'AffectsFormMode' Property

SAP Business One Tips – Usability of ‘AffectsFormMode’ Property

To solve this problem, we can use the Property of Item in SAP Business One SDK which is “AffectsFormMode”. When we set the value of “AffectsFormMode” Property to “True”, then the Text Field or Folder Tab, select or fill will affect the Form Mode. Otherwise, if we set the value to “False”, then the Text Field or Folder Tab will not affect the Form Mode. It will stay in OK Mode if we refer to the previous example.

Here is the code example of Using “AffectsFormMode” Property in VB.Net:

‘‘Example of Using AffectsFormMode Property
oItem = oForm.Items.Add(“FolderTest”, SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oItem.AffectsFormMode = False

 

Run Your Business With The Piece of Mind Using SAP Business One

This article was written by PT. Sterling Tulus Cemerlang, SAP Business One GOLD Partner in Indonesia.
More details about SAP Business One,
email to: sales-enquiry@sterling-team.com or call +6221-5806336 or wa +6287786555055

, , , ,