cancel
Showing results for 
Search instead for 
Did you mean: 

How to control item between Form mode change

Former Member
0 Kudos

Hi Experts

I am using B1DE to do something like some item's enable status will be changed following the Form mode change.

For instance, add a new matrix into system form, if changing the Form mode to Find, I want to disable this matrix, if changing to Add mode, the matrix should be enable.

Do you how how to do this?

Thanks

Tim

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member209699
Contributor
0 Kudos

Hi,

You need to capture Menu Event in your code and can make matrix either editable or non editable.


Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
        Try
            Dim oForm As SAPbouiCOM.Form = objMain.objApplication.Forms.ActiveForm
            If pVal.BeforeAction = False Then
                If pVal.MenuUID = "1281" Then                // For Find Mode
                    //make matrix editable or non editable
                End If
            End If
        Catch ex As Exception
            objMain.objApplication.StatusBar.SetText(ex.Message)
        End Try
    End Sub

regards:

Sandy