Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: Record change event

$
0
0

Hi Nicolas,

 

If I understood, your problem you need catch the event when other register is loaded in form. You can implement FormDataEvent and get the EventType et_FORM_DATA_LOAD. Every time that a new register is load in form, this event is fired.

 

Try something like this:

 

        static void FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)        {            BubbleEvent = true;            if (BusinessObjectInfo.FormTypeEx == "put sales order form type" && BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD)            {                //inserts your code            }        }

But if you need catch the click event in next, previous, last and first button of menu , you need implement the MenuEvent like this sample:

 

        static void MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)        {            BubbleEvent = true;            if (pVal.BeforeAction)            {                if (pVal.MenuUID == "1290") //First Data Record                {                                    }                if (pVal.MenuUID == "1288") //Next Record                {                }                if (pVal.MenuUID == "1289") //Previous Record                {                }                if (pVal.MenuUID == "1291") //Last Data Record                {                }            }        }

Hope it helps.

 

Regards,

Diego


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>