Hi All,
I'm new to B1 SDK . I need to disable the toolbar menu for e.g. First Data Record, Next Record, Previous Record, Last Data Record while a "Particular" system form is open. Only allow user to "Add" record, not allow to browse any records.
The code below does not disable menu item. Any idea?
Private Sub SBO_Application_MenuEvent(ByVal pVal As SAPbouiCOM.IMenuEvent, ByVal BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
Select Case pVal.MenuUID
Case 1288
SBO_Application.MessageBox("Action not available.")
BubbleEvent = False
Case 1290
SBO_Application.MessageBox("Action not available.")
BubbleEvent = False
Case 1289
SBO_Application.MessageBox("Action not available.")
BubbleEvent = False
Case 1291
SBO_Application.MessageBox("Action not available.")
BubbleEvent = False
End Select
End If
End Sub
Thanks.