In my driver I have defined a basic table with a context menu to allow the user to add/delete rows to the table.
But I also would like to add rows by calling protocol.AddRow(). When I try this, no row is added. But if I remove the context menu it works.
Are there any limitations/constraints when adding a context menu to a table?
Hi Anna,
The AddRow should work regardless of the context menu.
A context menu is a parameter that elicits some behaviour in DataMiner Cube and triggers a QAction to handle the action. I believe something else is causing a problem in your setup. Would it be possible to share your code in some way (github for example)?
Hi Anna,
To add on to Floris Answer, a potential problem could be if the key already exist. In that case the AddRow would not work and a SetRow should be used. You could add an if statement to check if the key exist to avoid this potential pitfall.
Sharing the Loggings of the element would be great as well to check if there were any exceptions there
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?