on 07-20-2017 5:39 PM - last edited on 02-03-2024 9:38 PM by postmig_api_4
I am new SAP B1 SDK but, many years programming.
I am trying to add some validation to Adding a Sales Order. I have got most of it figured out but exactly how to implement it.
What I have tried. I built a function to check the pertinate data but, I find if I try to override the save button's Before_Click function that I effectively bypass that entire function call.
I did get the desired effect by moving my function call to the Save button's PressedBefore event. However, is this the best/or only way of adding functionality to an event in SAP B1?
Ideally, I would like to take a button click event add to the process's before_click event and then let SAP B1 continue with it's button_click event.
Pretty simple function call:
Private Sub Button0_ClickBefore(sboObject As Object, pVal As SAPbouiCOM.SBOItemEventArg, ByRef BubbleEvent As Boolean) Handles Button0.ClickBefore
'Throw New System.NotImplementedException()
CheckDataSource() 'My function call
End Sub
Depends on what you are validating I would use the SP_TransactionNotification, you won`t need any add-on running to validade it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joey,
Refer to FormDataEvent under SDK Help Center and SDK Samples for the same. Here you can get bit information about it.
Kind regards,
ANKIT CHAUHAN
SAP SME Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.