cancel
Showing results for 
Search instead for 
Did you mean: 

Enable / Disable UDF in the Title Area

former_member280812
Active Participant
0 Kudos

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
View Entire Topic
former_member280812
Active Participant
0 Kudos

I already solved this problem

If pVal.MenuID ="1282" And pVal.BeforeAction = True Then
Dim ActiveForm As SAPbouiCOM.Form= SBO_Application.Forms.GetForm("-AnyNumber",0)
ActiveForm.Items.Item("U_Test").Enabled = False
EndIf