Skip to Content

SAP B1 Item Event Problem

Hi experts,

I have a problem with ItemEvent,

When i click menu item and create form Item event is running once,

Then i close and re-open the form item event is running twice and then three,four times..

How can i solve this problem?

Thank you for helps,

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 03, 2017 at 11:24 AM

    Hi Edy,

    I am sorry,

    Its here,

    Regards.

       public SalesOrder()
            {
                SBO_Application = Application.SBO_Application;
            SBO_Application.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(SBO_Application_ItemEvent);
    
            }
    
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 03, 2017 at 12:54 AM

    Hi Ahmet,

    Your event handler is registered multiple times.
    Please show your code where you add the event handlers.

    Regards
    Edy

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 03, 2017 at 09:06 AM

    Hi Ahmet,

    Not this part,

    Somewhere there should be a code that is similar to :
    SBO_Application.ItemEvent += SBO_Application_ItemEvent(....);

    Regards
    Edy

    Add comment
    10|10000 characters needed characters exceeded