Hi all,
What would be the best way to inform the user a couple of parameters are not writable in a certain device state. This state is indicated by a state parameter in the connector. My first idea was to hide the write parameters, but I think that's not possible. Some other ideas:
- Add a fixed parameter under those write parameters with a message explaining this behaviour.
- Display an information message saying it is not possible to perform a set when the user tries to set a value.
- Don't show anything, the value won't be updated anyway.
- Other suggestions
Thanks in advance!
Hello,
To display a message when you click on a write parameter please use the tag Message on the Parameter tag:
If you want to disable a write parameter based on another parameter value, please use the disable option on the discreet tag.
You could also have a QAction linked to that write parameter and validate the value before you set it.
If you trigger a QAction on that, you could then do protocol.ShowInformationMessage(“The value selected is invalid and it won’t be executed!”); to inform the user of the invalid option selected.
Hi,
I don’t think a message needs to be displayed every time one of the parameters is changed. It might be better to first check the device state and if necessary a message can be shown if the set won’t be executed.
The disable option won’t work since it are all standalone parameters.
The set is already being validated, my question is more about how to inform the user the set won’t be executed.