Skip to Content
0

Catching the right click delete row event

Mar 02 at 09:02 AM

26

avatar image
Former Member

Hello all,

I have the following code that I am using to get the item event change for the right click delete row. I have a custom add-on form.

The reason I need to catch the event is to recalculate the doctotal after I delete a row. E.g. below

I am currently using:

(pVal.EventType == SAPbouiCOM.BoEventTypes.et_LOST_FOCUS && pVal.ColUID == "i#") && pVal.Before_Action == false)

This is not working.

Any help on how to catch the event?

Regards,

untitled.png (20.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Ad Kerremans Mar 02 at 09:43 AM
2

Hi,

you should catch the menu event "Delete Row" --> Menu Id 1293

Regards
Ad

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for the reply. However, 'MenuEvent' does not contain a definition for 'Row'. This becomes a problem as I sum columns.

0

You can use a workaround->

declare a class member: int selectedRow.

add a RightclickBefore Eventhandler to the form:

selectedRow = pVal.Row

0