PT Sterling Tulus Cemerlang
www.sterling-team.com

Whatsapp
+62-877-8655-5055

Email
sales-enquiry@sterling-team.com

Address
Sampoerna Strategic Square
South Tower Level 30
Jl Jend. Sudirman No. 45-46
Jakarta 12930 – Indonesia

500+ FREE Tips SAP Business One for you to Become SAP B1 Super User from Sterling Tulus Cemerlang (STEM)

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

 

Also read:

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

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

, , , ,