Hi,
I'm working on a DataMiner protocol that includes a table (Param ID 1800), this populate with HTTP API Session and QAction and have a write column (Param ID 1902). This column is linked to another QAction with row="true" and is correctly defined in the XML.
However, after compiling the protocol, I noticed that parameter 1902 does not appear in the autogenerated Parameterclass (e.g., Parameter.Servicetable.Pid.servicetableservicewrite). Only read parameters seem to be included.
My goal is to capture the value entered in the cell that triggered the QAction, ideally using the parameter reference (instead of hardcoded numbers like 1902). I'm currently using protocol.GetParameter(1902) and protocol.RowKey()to do this successfully, but I would like to know if there's a more standard or supported way to reference this parameter.
Could you please clarify:
What is the correct way to define a write table parameter so it is included in the autogenerated Parameter class?
If this is not possible, what is the recommended approach for capturing the value entered in the cell that triggered the QAction?
Thanks in advance
Hi, you can access the write parameters IDs at Parameter.Write.XXX_1902
in a similar fashion to other parameters. You can also retrieve the trigger PID using protocol.GetTriggerParameter()
.