Skip to Content

Event Filter not working with UDO

I am trying to catch a UDO's data add/update/delete event using SAP Business One 9.2 SDK UI and DI API in C#. If I don't use any event filter I can catch the event, the `FormTypeEx` matches and works like it should, but If I define a filter, even for `BoEventTypes.et_ALL_EVENTS` and add the FormTypeEx to the filter, I can no longer catch the event. It gets filtered. Shouldn't it just allow it?

I exported the UDO's form to Business One Studio, the form node has the FormType attribute as I expected, so it shouldn't be the problem. The filter's `FormTypeEx` string is the same, which I checked also when I turned the filters off (I caught the event and printed the `BusinessObjectInfo.FormTypeEx` and it was also the same...)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 24, 2016 at 11:36 AM

    Hi Szabolcs,

    What's the output of the "filters.GetAsXml()" after you've registered your filter? You can export the filter and check if it was properly set.

    Pedro Magueija

    LinkedIn | Twitter | Blog

    Add comment
    10|10000 characters needed characters exceeded