Skip to Content
0
Aug 26, 2019 at 05:08 AM

Enable / Disable UDF in the Title Area

91 Views Last edit Aug 26, 2019 at 09:36 AM 3 rev

Hi,

I want to control my udf in the title area based on the changing of the form mode. If the user click on the find/update mode I want my udf to disabled but if the user click the add mode I want my udf to enable.

Currently I am working in the below script. But nothing happened

If pVal.MenuID = "1282" And pVal.BeforeAction = True Then
Dim ActiveForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
ActiveForm.Items.Item("U_Test").Enabled = True
Else 
ActiveForm.Items.Item("U_Test").Enabled = False
End If