Hi Dojo,
Driver has context menu parameter for add/delete channels from table. That's only way how channel can be added or deleted from driver.
I know that we can do SetParameter() from automation script and it will trigger QA if value is changed but QAction that are triggered from context menu has additional contextData object.
Is it possible to change value and trigger that context menu parameter from automation script?
Hi Dario,
The best way to achieve what you are trying to do is to do it via InterAppCalls. This way both the automation script(s) and the context-menu can make use of the same InterAppCalls. Your context-menu QAction will then only contain the code responsible for converting contextMenuData into an InterAppCall.
How to implement contextMenu => Use the related NuGet: NuGet Gallery | Skyline.DataMiner.Utils.Table.ContextMenu 1.0.0.1
More info on InterAppCalls => InterApp classes | DataMiner Docs
regards,
Hi Dario,
You should be able to use the snippet from the answer to this other question
Indeed, this approach is best when adapting the connector is not possible or should be avoided because it requires no changes to the existing logic.
But since the suggestion on the other question uses an SLNet call the usual disclaimer applies here where SLNet calls should be used only when strictly necessary.
Hi Joao and Simon, in my case context menu logic already exist. Will try with that solution. But it’s also good to know that when we implement these things from scratch it will be good to use InterAppCalls.
if the context-menu code already exists, this solution is indeed a quick win.
But if you need to create something new, I would really suggest to go for the InterAppCalls approach which is to me much more elegant, future proof, flexible.