cancel
Showing results for 
Search instead for 
Did you mean: 

Event Filter not working with UDO

former_member231954
Participant
0 Kudos

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...)

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

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

former_member231954
Participant
0 Kudos

Thanks, it was my error after all, I couldn't see the event filter in the XML.

Answers (0)