Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

delete data prompts the user Yes/No?

I would like to delete data prompts the user Yes/No?

When click "Yes" confirm delete, click "No" cancel delete.

What to do?

Please provide code?

Thanks very much!!!

replied

Hi Youbing You

You need to post code to call Confirm(...) in the ItemEvent

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

  Dim oForm As SAPbouiCOM.Form
  oForm = SBO_Application.Forms.Item(FormUID)

  Select Case pVal.EventType
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
      Select Case pVal.ItemUID
	Case "1"  ' Ok, Confirm operation
	  If Not pVal.BeforeAction Then
	      BubbleEvent = Confirm(...)
	  End If
      End Select
  End Select

End Sub

Regards

Sierdna S.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question