Dear,
I know this function to get parameter inside Qaction C#:
Example:
string s_city = Convert.ToString(protocol.GetParameter(50));
But how can I retreive the IP and Port/Bus in C# property of an element?
Regards Cedric Buerfent
done. Regards
Hi Cedric,
I think you should be able to achieve this by defining a parameter of type "bus" and "port". More information can be found here. DataMiner will automatically populate those parameters with the corresponding values.
From your QAction, you can then simply retrieve those values by reading the parameters you defined. This way, you can access the bus or port information directly without needing additional logic.
Hope this helps.
Kind regards,
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 that has been most helpful for you (using the ✓ icon)?