Hello Guys,
I have a connector that is enabling and disabling DVE's in another connector using protocol.NotifyDataMiner(225 /*NT_SET_ROW*/, rowDetails, rowData);
The enable is working as expected, the DVE is enabled on the remote connector and appears the DVE appears in the surveyor. I am running into an issue with the disable. It sends the SET_ROW to disable and it changes in the remote connector but the DVE is not removed from the surveyor.
Do you know any reason that this would not be working?
Hello Rene,
That is correct. This is a new connector and this has not worked so far. Yes if I reenable then disable from the parent it works.
Hi Kristopher,
Given your answer to Rene's question that when doing it manually it is working, it makes me conclude that the logic for enabling and disabling the DVE is on a trigger associated with the write parameter of your table.
When doing a set row, you are bypassing that logic and going directly to the "read side" of the control parameter.
My suggestions would be to either move the logic to execute on change of the read parameter or, and this would be my preferred approach, change the way you perform the set to point towards the write parameter associated with the enable/disable column.
To keep in line with the methods you are already using you could try the following notify call NT_SET_PARAMETER (50) | DataMiner Docs and in the part where it has this
uint parameterID = 10;
you would replace with the parameter id of your write parameter.
Thank you for your answer, this did fix my issue.
Hi Kristopher, toggling the status to “disabled” in the row should resolve in two things:
1. The status goes to “Disabled” in the visual. This is working for you.
2. The action of removing the DVE element is actually executed. This is not working for you.
Without knowing the details of the connector integration, could it be that the interelement set is only triggering the visual part and that another necessary step (e.g., check if the element exists) is not captured by the set?
Did it ever work? Are you able to do it manually directly in the DVE parent element?
Thanks,