Skip to Content
0
May 02, 2018 at 01:35 PM

How to set if condition based on combobox value in SAP B1 SDK?

821 Views Last edit May 02, 2018 at 01:37 PM 2 rev

Hi all,

I write codes of to hide field (UDF) on Activity form in SAP B1, but I want to set condition based on value of Activity field, for example When I select in combobox Task then that UDF shows if I select Phone Call then UDF hides.

The following is my code

Dim oform As SAPbouiCOM.Form = SBO_Application.Forms.Item(FormUID) 

oform.Items.Item("U_ModTrav").Visible = False
oform.Items.Item("1000001").Visible = False

How can I set this condition in SAP B1 SDK?

Please anyone can help me