Unfortunately there is no system support (so far, we are working on it) for the alarm sounds in web clients, so it needs to be implemented by the application designer:
On web client:
In any permanently visible graphic item on the web panel call your own created server method (in its event onRefresh):
Example:
if Pm.methods.GetActualAlarms > 0 then
Pm.PlaySound "file:$path.pmres:Sound\hoot01.wav;"
end if
See:
http://www.promotic.eu/en/pmdoc/Objects ... ethods.htmhttp://www.promotic.eu/en/pmdoc/Objects ... ySound.htmOn server:
Create global method GetActualAlarms
This method is to return the number of actual alarms in local app
Method script:
pResult = pMe.Pm("/AlarmEvent/al_alarms").GetStateCount("state:3;")
http://www.promotic.eu/en/pmdoc/Objects ... eCount.htm