on 08-26-2019 6:08 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
9 | |
8 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.