cancel
Showing results for 
Search instead for 
Did you mean: 

Folder

Former Member
0 Kudos

Hi

I create a form and In that I take the 3 folders.each Folder have a different matrix.i assign this form to menu item .when i click the menu item it open the form but when click the folder the matrix was not open.What the problem.Please tell me

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Thippa Reddy Musturu

You need to catch et_Item_Pressed and change Pane Level in correspondence of pressed folder.

See how to do it in 07.ComplexForm SDK example:


SDK_Samples_2005\COM UI\VB.NET\07.ComplexForm\2003

Hope this can help you

Regards

Sierdna S.

P.S. ItemEvent Handler


Private Sub SBO_Application_ItemEvent( _
        ByVal FormUID As String, _
        ByRef pVal As SAPbouiCOM.ItemEvent, _
        ByRef BubbleEvent As Boolean _
) Handles SBO_Application.ItemEvent

        If FormUID = "MyComplexForm" Then

            oForm = SBO_Application.Forms.Item(FormUID)

            Select Case pVal.EventType

                Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED

                    '//************************************************************
                    '// Check if the event was raised by one of the Folder items
                    '// and change the form's pane level
                    '//************************************************************
                    If pVal.ItemUID = "Folder1" Then
                        oForm.PaneLevel = 1
                    End If

                    If pVal.ItemUID = "Folder2" Then
                        oForm.PaneLevel = 2
                    End If
...

Answers (0)