{"id":11144,"date":"2020-07-15T11:39:01","date_gmt":"2020-07-15T14:39:01","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=11144"},"modified":"2020-07-15T11:39:01","modified_gmt":"2020-07-15T14:39:01","slug":"how-to-export-a-current-filter-list-from-e3alarm-to-print-it","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/","title":{"rendered":"Exporting alarms from E3Alarm."},"content":{"rendered":"<h2>Question:<\/h2>\n<p>Can I export the current filter list of an E3Alarm in order to print it?<\/p>\n<h2>Solution:<\/h2>\n<p>Yes, you can export the current filter list of an E3Alarm. To do so, you must first sweep the E3Alarm&#8217;s current filter&#8217;s events list, and then export them to text or Excel files (or any other accessible format) via Windows system objects with <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/lwef\/using-vbscript\" target=\"_blank\" rel=\"noopener noreferrer\">VBScript<\/a>.<\/p>\n<p>The E3Alarm&#8217;s events list works similarly to the object-oriented programming logic in Elipse E3\/Power. This list can be accessed via a collection called Events, which is available in E3Alarm. The collection&#8217;s <em>Count<\/em> property returns the number of events in the current filter.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">evtcount = Screen.Item(\"E3Alarm1\").Events.Count<\/pre>\n<p>Once you have that information, you can then sweep the events list with E3Alarm&#8217;s <em>GetEventByIndex<\/em> method, associated to a repetition loop.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">For count = 0 to evtcount - 1\r\nset evtAlarm = Screen.Item(\"E3Alarm1\").GetEventByIndex(count)\r\n'prints the value in  InTime field of the retrieved event \r\nmsgbox \"Date\/Time (Input) of the retrieved event is: \"& evtAlarm.InTime\r\nNext<\/pre>\n<p>Then, once loading the event object, you can access the values from all fields referring to the alarm. These are Date\/Time (Input), Date\/Time (Output), Message, Operator, among others. You can find the complete list with all possible fields in an event at <strong>Scripts: Reference Manual<\/strong>; the list is at: <em>Visualization &#8211; E3Alarm &#8211; Events Collection &#8211; Event &#8211; Properties<\/em>.<\/p>\n<p>Once you apply the condition loop, you will be able to identify which alarms in the E3Alarm&#8217;s alarms list are active.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">For count = 0 to evtcount - 1\r\nset evtAlarm = Screen.Item(\"E3Alarm1\").GetEventByIndex(count)\r\nIf evtAlarm.ConditionActive = \"True\" Then\r\n'prints the value at InTime field of the retrieved event\r\nmsgbox \"Date\/Time (Input) of the retrieved event is: \"& evtAlarm.InTime\r\nEnd If\r\nNext<\/pre>\n<p>The items explained above, as well as the edition of Excel files via VBScript, have inspired the development of the demo application attached to this article.<\/p>\n<p>The related article, <strong><a href=\"https:\/\/kb.elipse.com.br\/en\/how-to-read-write-in-excel-files-via-elipse-e3-power\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to read\/write in Excel files via Elipse E3\/Power<\/a>,<\/strong> shows you in greater details how to manipulate Excel files via an Elipse application.<\/p>\n<p><strong>NOTE: <\/strong>The demo application was developed at <strong>Elipse E3 <\/strong>version<strong> 5.1 <\/strong>build<strong> 186.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Related articles:<\/h3>\n<hr \/>\n<ul>\n<li class=\"entry-title\"><a href=\"https:\/\/kb.elipse.com.br\/en\/how-to-read-write-in-excel-files-via-elipse-e3-power\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to read\/write in Excel files via Elipse E3\/Power.<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/kb.elipse.com.br\/en\/kb31747-filtering-and-printing-an-alarm-list\/\" target=\"_blank\" rel=\"noopener noreferrer\">KB-31747: Filtering and printing an alarm list.<\/a><\/li>\n<li class=\"entry-title\"><a href=\"https:\/\/kb.elipse.com.br\/en\/kb12658-readingwriting-txt-files-with-e3\/\" target=\"_blank\" rel=\"noopener noreferrer\">KB-12658: Reading\/Writing TXT files with E3.<\/a><\/li>\n<\/ul>\n<h3>Attachment:<\/h3>\n<p><a href=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2020\/05\/AppE3AlarmExport_eng.zip\" target=\"_blank\" rel=\"noopener noreferrer\">AppE3AlarmExport_eng.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can I export the current filter list of an E3Alarm in order to print it? Solution: Yes, you can export the current filter list of an E3Alarm. To do&hellip;<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[740,763],"tags":[1060,1061,1063,1062,1031,1024],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to export a current filter list from E3Alarm to print it.<\/title>\n<meta name=\"description\" content=\"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to export a current filter list from E3Alarm to print it.\" \/>\n<meta property=\"og:description\" content=\"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-15T14:39:01+00:00\" \/>\n<meta name=\"author\" content=\"Gabriel Manara\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gabriel Manara\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\"},\"author\":{\"name\":\"Gabriel Manara\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/62f73726da552619d723db2fd82e3530\"},\"headline\":\"Exporting alarms from E3Alarm.\",\"datePublished\":\"2020-07-15T14:39:01+00:00\",\"dateModified\":\"2020-07-15T14:39:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\"},\"wordCount\":323,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"keywords\":[\"alarms\",\"export\",\"list\",\"print\",\"E3Alarm\",\"script\"],\"articleSection\":[\"E3Alarm\",\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\",\"name\":\"How to export a current filter list from E3Alarm to print it.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2020-07-15T14:39:01+00:00\",\"dateModified\":\"2020-07-15T14:39:01+00:00\",\"description\":\"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exporting alarms from E3Alarm.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/62f73726da552619d723db2fd82e3530\",\"name\":\"Gabriel Manara\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8f08450bea42667090b5d00999160306?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8f08450bea42667090b5d00999160306?s=96&d=mm&r=g\",\"caption\":\"Gabriel Manara\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/manara\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to export a current filter list from E3Alarm to print it.","description":"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/","og_locale":"en_US","og_type":"article","og_title":"How to export a current filter list from E3Alarm to print it.","og_description":"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.","og_url":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2020-07-15T14:39:01+00:00","author":"Gabriel Manara","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gabriel Manara","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/"},"author":{"name":"Gabriel Manara","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/62f73726da552619d723db2fd82e3530"},"headline":"Exporting alarms from E3Alarm.","datePublished":"2020-07-15T14:39:01+00:00","dateModified":"2020-07-15T14:39:01+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/"},"wordCount":323,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"keywords":["alarms","export","list","print","E3Alarm","script"],"articleSection":["E3Alarm","Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/","url":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/","name":"How to export a current filter list from E3Alarm to print it.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2020-07-15T14:39:01+00:00","dateModified":"2020-07-15T14:39:01+00:00","description":"This article shows hot to export a current filter list of E3Alarm (Elipse E3 object) for printing it in text or Excel format.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/how-to-export-a-current-filter-list-from-e3alarm-to-print-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Exporting alarms from E3Alarm."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/62f73726da552619d723db2fd82e3530","name":"Gabriel Manara","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8f08450bea42667090b5d00999160306?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8f08450bea42667090b5d00999160306?s=96&d=mm&r=g","caption":"Gabriel Manara"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/manara\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11144"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=11144"}],"version-history":[{"count":5,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11144\/revisions"}],"predecessor-version":[{"id":11149,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11144\/revisions\/11149"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=11144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=11144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=11144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}