Hello together,
I am looking for a possibility to link an alarm confirnment with a password. So, if a special alarm appears I want to show a window, which asks wether the user wants to confirm the alarm. And to do so, he needs to type in his password.
I know about user management and the possibility to restrict a user`s access in general. But I have no clue how to create a password promt for a single alarm... Also, I haven`t found anything online.
Does somebody have an idea?
Thank you very much in advance!
Possibility to link alarm confirnment with password?
Search
Re: Possibility to link alarm confirnment with password?
You could implement the following function, which is called when a alarm is aknowledged.
void HOOK_isAckable(int type, dyn_atime &dps, int &ackable)
The description is in the Win CC OA Help
void HOOK_isAckable(int type, dyn_atime &dps, int &ackable)
The description is in the Win CC OA Help
Re: Possibility to link alarm confirnment with password?
Hello,
I was looking at the code for the AEScreen and the UI.
If my investigation is correct the function HOOK_isAckable() is only called when the acknowledge-script for a graphical object is stared.
If you want to get the dialog also when acknowledging the alert at the AEScreen you have to define the function HOOK_ep_acknowledgeTableFunction().
Best Regards
Leopold Knipp
Senior Support Specialist
I was looking at the code for the AEScreen and the UI.
If my investigation is correct the function HOOK_isAckable() is only called when the acknowledge-script for a graphical object is stared.
If you want to get the dialog also when acknowledging the alert at the AEScreen you have to define the function HOOK_ep_acknowledgeTableFunction().
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Possibility to link alarm confirnment with password?
I guess you first need to define where and how to acknowledge your alarm.
1) You could display the alarms in a faceplate and make a simple button
2) When you want to have it in the alarm table, then you could simply 'override' the click event. You could ask for a password and then call the normal function that sits behind the click event
3) I have quite often made my own alarm screen (because you have complex columns or other quite special bahavior that the standard AES table can't handle)
A simple dialog that calls 'checkPassword()' should be enough.
When you do decide to override the click behaviour of the alarm table, then make sure to document this quite well. because you'll have to do it again when you receive a patch that updates the alarm table panel.
Good luck
Frenk
1) You could display the alarms in a faceplate and make a simple button
2) When you want to have it in the alarm table, then you could simply 'override' the click event. You could ask for a password and then call the normal function that sits behind the click event
3) I have quite often made my own alarm screen (because you have complex columns or other quite special bahavior that the standard AES table can't handle)
A simple dialog that calls 'checkPassword()' should be enough.
When you do decide to override the click behaviour of the alarm table, then make sure to document this quite well. because you'll have to do it again when you receive a patch that updates the alarm table panel.
Good luck
Frenk
Re: Possibility to link alarm confirnment with password?
Thank you very much for your help!
Unfortunately the first two functions don`t help me, as I want to request the password before the alert is acknowledged.
But the button is a great idea. I am trying now to solve it by using a button which turns visible if a special variable is true and which pops up the login panel if clicked.

Unfortunately the first two functions don`t help me, as I want to request the password before the alert is acknowledged.
But the button is a great idea. I am trying now to solve it by using a button which turns visible if a special variable is true and which pops up the login panel if clicked.
