Skip to Content
author's profile photo Former Member
Former Member

How to control item between Form mode change

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?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 12, 2010 at 05:16 AM


    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)
                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
            End Try
        End Sub



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.