2/2/2006 8:18 PM | |
Posts: 70 Rating: (13) |
Hi I had this same problem trying to do the same thing. I was trying to log a message like "Joe Soap has changed Setpoint XYZ from 10 to 20" and had all sorts of problems. The "built-in" functions never seemed to work as advertised so this is what I ended up doing: 1) Wrote a function with ODK to manually generate an alarm message (no triggering with internal tags - this is where you end up one message behind) 2) Put some code in the "Focus Change" and "Output Value Change" events of IO Fields to call this function when the operator edited the value. In the "Focus Change" event the script stores the output value of the IO Field into a static variable; in the "Output Value Change" event the script uses this previous value and the new value to log an alarm message. You can get the Create Alarm function with explanation here: http://www.allottware.co.za/raweb.dll/Script?p=Alarms&s=raCreateMessage You can get the function to call in the IO Field events here: http://www.allottware.co.za/raweb.dll/Script?p=Alarms&s=raCreateValueMessage I haven't looked at this problem in a long time, and I don't know how this works in a Server/Client situation. The script also does not work through WebNavigator. Reuben |
Follow us on