Skip to Content
author's profile photo Former Member
Former Member

handling events in c#


Im getting started in SAP business one , and i have to program an add_on using c# and the API of business one...

I created a form vi the UI API and i put some items ...

my probleme is that im getting started with c# too , and i would like to have samples written in c# so it can help me to handle events...

thank you...

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 02, 2005 at 03:01 PM

    Hi Ola,

    To handle item (or menu) events in C# events you have to do this:

    1. implement a handler:

    private void _itemHandler(string FormUId, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)

    2. connect to the event sink:

    theAppl.MenuEvent += new SAPbouiCOM._IApplicationEvents_MenuEventEventHandler(this._menuHandler);

    theAppl.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(this._itemHandler);



    PS: What do you think about getting trained (SAP Business One, SAP Business One SDK, C# (?))?

    Please note that there's a lot of information available on SAP Service Marketplace (including eLearning for SAP Business One, but no C#...): On SMP go to the Education page and select a curriculum...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.