cancel
Showing results for 
Search instead for 
Did you mean: 

Action_Success B1 2004, B12005

Former Member
0 Kudos

Hi all!

Some idea about this?

In B1 2004A when I saved a customer order, Action_Success was TRUE only after the saving on B1 Company DB. Now (with B1 2005A SP:00 PL:07) Action_Success = TRUE immediately after the click on Saving button (pVal.ItemUID = 1).

I need to start my add-on only after saving customer order on B1 Company DB, also in B1 2005!

This is my VB.NET code:

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

If pVal.FormType = "139" Then

Select Case pVal.EventType

Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD

...

Case SAPbouiCOM.BoEventTypes.et_CLICK

...

End Select

If pVal.Action_Success = True And pVal.ItemUID = 1 And (pVal.FormMode = 2 Or pVal.FormMode = 3) Then

....

View Entire Topic
Former Member
0 Kudos

Hi,

try this:

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

If pVal.FormType = "139" Then

Select Case pVal.EventType

Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD

...

Case SAPbouiCOM.BoEventTypes.et_CLICK

...

End Select

If pVal.Action_Success = True And pVal.ItemUID = 1 And (pVal.FormMode = 2 Or pVal.FormMode = 3) Then

msgBox("Action_Success: " + CStr(Action_Success))

End If

End Sub

In is my code.

In B1 2004 messagebox appears after saving customer order and after clearing form.

In B1 2005 messagebox appears soon after clik save button.

Former Member
0 Kudos

Hi,

I try your code whit this change:

MsgBox("Action_Success: " & CStr(pVal.Action_Success) & " " & pVal.EventType)

In SBO 2005 PL7:

I have two message, one for event 6 (et_CLICK) and other for event 1 (et_ITEM_PRESSED).

In SBO 2004:

I have only one message for event et_ITEM_PRESSED.

Is the diference between two versions, I think that you need to include this validation, The correct event is et_ITEM_PRESSED.

Best Regards.