cancel
Showing results for 
Search instead for 
Did you mean: 

Open

Former Member
0 Kudos

Hi

I create a menu and assign 9 forms its ok but when i execute the programme first all are open after 1 0r 2 mins no one form is open .What is the problem?Is there any time out?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Also you need to close the form using ItemPressed Event Handler:


Public Sub SBO_ManageItemEvent( _
            ByVal FormUID As String, _
            ByRef pVal As SAPbouiCOM.ItemEvent, _
            ByRef BubbleEvent As Boolean _
)
  Dim oForm As SAPbouiCOM.Form
  Try
    oForm = SBO_Application.Forms.Item(FormUID)
  Catch ex As Exception
    oForm = Nothing
  End Try

  If Not oForm Is Nothing Then
    Select Case oForm.TypeEx
       Case "YOUR_FORM_TYPEX"
            If pVal.EventType = BoEventTypes.et_ITEM_PRESSED Then
              If pVal.ItemUID.Equals("btnGoBack") Then
                oForm.Close()
              End If
            End If
...
End Sub

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Good practice to use different UID for your forms.

Look these thread: [Problem when i have the same form open two time at the same time|;

Regards

Sierdna S.