wirelessliquid
Member
I'm not sure if I've come across a bug or I'm missing something very simple but I can't seem to hide a button in FT View.
There is a MomentaryPushButton used to start and stop a process, now this needs to be hidden from stopping the process if the user is not logged in above user level C. This button should always be able to be pressed if the process has stopped to start the process as soon as possible.
To do this I've placed an indicator over the button telling the user to log in to level C or higher so they can stop the process. The visibility expression I used was :
(NOT CurrentUserHasCode( C ) AND ({[PLC]ProcServices.Stat.OPMode} == 2)) == Visible
Which appears to be working hiding the indicator at the correct time.
The issue I'm having is that the MomentaryPushButton can still be pressed with an indicator in front of it. I even tried placing a transparent polygon in front of the button but the button can still be pressed.
How can I prevent the button from being pressed when the conditions are not met?
There is a MomentaryPushButton used to start and stop a process, now this needs to be hidden from stopping the process if the user is not logged in above user level C. This button should always be able to be pressed if the process has stopped to start the process as soon as possible.
To do this I've placed an indicator over the button telling the user to log in to level C or higher so they can stop the process. The visibility expression I used was :
(NOT CurrentUserHasCode( C ) AND ({[PLC]ProcServices.Stat.OPMode} == 2)) == Visible
Which appears to be working hiding the indicator at the correct time.
The issue I'm having is that the MomentaryPushButton can still be pressed with an indicator in front of it. I even tried placing a transparent polygon in front of the button but the button can still be pressed.
How can I prevent the button from being pressed when the conditions are not met?