Hi Dojo,
I am currently working on a connector where a user can specify elements in a table, then when found it will subscribe to it and update an "Element State" column to determine if the element is active/stopped/paused/deleted etc.
So the flow is user sets element, check if exists, add subscription, and on element state message it updates the table.
Problem is, I don't think I'm receiving the message -columns not receiving update.
I have the following handler:
Called from here:
Is there a better way to do this?
Bonus question: Logs don't work on the handler - this is because the SLProtocol object is not initialized at that point, right?
Hi Alex,
I don't immediately see a mistake in your code. But maybe you could try using DMS monitors instead of setting up the subscriptions yourself. With that library it should be easier to setup receiving events when something changes.
https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryMonitors.html