iX Talk
http://beijerinc.com/support/ix/forum/

AlarmViewer - filter by script
http://beijerinc.com/support/ix/forum/viewtopic.php?f=6&t=1538
Page 1 of 1

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

Hi,

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

Regards

Joe

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).

Code:
    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>();
         alarmGroupsToShow.Add("Default");
      }
      
      
      void btnShowAll_Click(System.Object sender, System.EventArgs e)
      {
         AlarmViewer1.FilterAlarmView(true,true,true,true,alarmGroupsToShow);
      }
      
      void btnOnlyActive_Click(System.Object sender, System.EventArgs e)
      {
         
         AlarmViewer1.FilterAlarmView(true,false,false,false,alarmGroupsToShow);
      }
   }
}   


Best Regards

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

Hi.

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,
Kim

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/