Hi,
I'm stuck trying to solve this issue. In the "Chunk" column of my table, I created a toggle button that's linked to a QAction. This QAction needs to send a request to the following API endpoint:http://x.x.x.x/api/v1/servicesmngt/services/{UID}
The problem is: how can I get the UID from the same row where the toggle button was clicked?
For example, if I click the green toggle button in the row with UID = c1d02328-b5db-4c50-9c4d-3bae0d0d49d0, I want the QAction to use this specific UID
http://x.x.x.x/api/v1/servicesmngt/services/c1d02328-b5db-4c50-9c4d-3bae0d0d49d0
How can I pass the UID from the selected row to the QAction when the green toggle button is clicked?
Thanks
Hi Jose,
Your QAction needs to have the row="true"
attribute. This will allow you to identify which row triggered it.
row attribute | DataMiner Docs
Then inside of your QAction add this line which will get you the primary key for the row that you pressed the button for.
string primaryKey = protocol.RowKey();

Hi Geovanny,
Thanks for your help