We are currently performing an integration with the northbound DataMiner API and the websocket that it exposes. When subscribing to the contents of a complete table, we initially get the full table contents back. Any changes which happen after the initial message, will be updated to the client via a DMAParameterTableUpdate message, see following example:
So far we handle the “UpdatedRows”-array accordingly. Could you either provide insight on how the “DeletedRows”-attribute of this message might look like or explain, how we can trigger an update ourselves, which would cause this “DeletedRows”-attribute to have a non-null value, so that we can handle such messages?
The assistance will be much appreciated!
The DeletedRows property contains a list with the primary keys of any rows that were deleted from the parameter table on which you subscribed.
The value will be an array of strings, see example below.
How to trigger an update
In some tables, rows will automatically be deleted. For example, using a Microsoft Platform protocol, the Task Manager table will delete rows when a process dissappears.
Some tables allow you to manually remove rows, which can be very helpful for testing.
Example
Here I am removing the last City, Izegem (primary key = 13) of the Cities table.
This will result in the following update event: