cancel
Showing results for 
Search instead for 
Did you mean: 

Order Form Evet Filter

Former Member
0 Kudos

hello,

I'm using the B1 2005A SP01 PL:11. I found that there have a evet filter et_ALL_EVENT.

When i tried the folloing code, the message box does not shown. Is it caused by the filter??

' After User Action

If pVal.FormType = "139" And _

pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD _

And Not pVal.BeforeAction Then

'// get the event sending form

oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED _

And pVal.ItemUID = "add" Then

SBO_Application.MessageBox("Hello")

End If

End If

Regards,

Kit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I doubt very much that there exists a ItemUID with tag "add". Maybe you should try <i>pVal.ItemUID = "1"</i>

Former Member
0 Kudos

Hi Kit,

First, I suppose the "add" button is created by you (standard Add button´s ID is 1).

Second, could you share the event filter adding code?

Regards,

Ibai Peñ