Hi all,
Is it possible to get the parameter to use the corresponding int values (representing the order number) of the dynamic dropdown list elements?
For example, if I have the parameter used as dependencyId set to "A;B;C" value, I want values 0;1;2 to be sent to the snmpset on the parameter using it.
If not, what are the workaround options for this?
Hi Alija,
I don’t think there’s a built-in mechanism to automatically map dropdown order/index to the value sent during the set.
If you are populating the dependencyId parameter through a QAction, my suggestion would be to keep track of the order there. Then, when the user performs a set, you can handle it using a OnChange => QAction and determine the index/position of the selected value within the dependencyId values you previously populated.
If you prefer not to keep the values in memory, another option would be to retrieve the parameter value using a GetParameter call and determine the corresponding index from there before sending the integer value in the SNMP set.
Kind regards,
Hi José,
Thank you for your answer. Values are already hardcoded as fixed protocol parameter values and copied over by protocol actions. I am already implementing the mapping in the QAction, and I am glad it aligns with what you said.