- getting data through Api call, now for edited and completed job status rows i need to show start in update job status column and for running job status stop
- on toggle i need to send a post api (start or stop ).so how will be the flow for that .
Hi Chirangee,
I’m not sure if I fully understood the question, but it seems clear that you'll need a QAction to manage what you want to achieve with the table.
1) What type of table is it? SNMP?
If it’s an SNMP table, you can set a trigger on the PID of the table, triggering a QAction to read the received values. Inside the QAction, you can read the value from the JobStatus column and check each row's job status. Based on the value, update the UpdateJobStatus column with the corresponding value (either "start" or "stop"). In the end, you can fill the array with the column's data.
E.g:
If the table isn’t SNMP-based, are you already using a QAction to populate it? If so, you just need to read the information from the JobStatus column, append the corresponding value to the new UpdateJobStatus column, and then fill the array with all the data.
2) If you want to trigger a column in a table to send a command, you should create a QAction with an "OnChange" event for the parameter of type write:
Using DIS:
You will also need to add this in the QAction:
This will allow you to know, within the QAction, which row was clicked.
After that, you can perform the post call for the desired Job.
Hope this helps you,
Kind regards,
……