iX Talk

AlarmViewer - filter by script
Page 1 of 1

Author:  Joe [ Mon Nov 04, 2013 3:18 am ]
Post subject:  AlarmViewer - filter by script


Can I set filter to alarm groups in AlarmViewer using the script.

For example, I need -> AlarmGroup1 - set "Enabled" - ON, set "Normal" -OFF ...

Thanks for reply



Author:  Edmund [ Mon Nov 04, 2013 6:55 am ]
Post subject:  Re: AlarmViewer - filter by script

Here is a example with two buttons (show all, show only active).

    using System.Windows.Forms;
    using System;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
   using System.Collections.Generic;
    public partial class AlarmScreen
      private List<string> alarmGroupsToShow;
      void AlarmScreen_Opened(System.Object sender, System.EventArgs e)
         alarmGroupsToShow = new List<string>();
      void btnShowAll_Click(System.Object sender, System.EventArgs e)
      void btnOnlyActive_Click(System.Object sender, System.EventArgs e)

Best Regards

Author:  kim [ Thu Jul 27, 2017 5:43 am ]
Post subject:  Re: AlarmViewer - filter by script


I read this and it was helpful to me. I am not so skilled in scripting so I want to ask for some help.

I have two questions:
1. Additional to these functions to filter one group only, I also want a button that enables all groups to be shown, or more than one group. How to do this?
2. What settings does the "true,false, true...." represent? (something about Normal, Ack...)

Thank you,

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group