{"id":3584,"date":"2019-03-25T17:44:59","date_gmt":"2019-03-25T20:44:59","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/"},"modified":"2019-07-04T17:01:16","modified_gmt":"2019-07-04T20:01:16","slug":"using-the-viewer-in-elipse-e3-chapter-10-viewer-tags","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/","title":{"rendered":"Using the Viewer in Elipse E3: Chapter 10 &#8211; Viewer Tags."},"content":{"rendered":"<div align=\"justify\">\n<p>In the Viewer object, you can create a folder with the following tag types: Conter, Demo, Internal, and Timer.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5283\/1.png\" alt=\"\" width=\"396\" height=\"247\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>These variables must be created separately in each Viewer when the information is different in each case.<\/p>\n<p><b>Example<\/b>: On daylight saving time, the server&#8217;s time is not updated, while the other computers&#8217; times are.\u00a0 When viewing a CurrentTime demo tag created in the server, this variable&#8217;s value will be off one hour from the same one in the Viewer, because the Viewer tag will display the time from the computer connected to the application.<\/p>\n<p><b><span style=\"color: #3366ff; font-size: large;\">Semaphore<\/span><\/b><\/p>\n<p>In some applications, you must insert a logic operation to keep a screen from being open by more than one user at the same time.<\/p>\n<p><b>Identifying the computer <\/b><\/p>\n<p>The first step is identifying the name of the computer running the Viewer. Since several Viewers can be connected, each with a different name, this information must be saved in a variable in the Viewer object. To do so, follow these procedures:<\/p>\n<ul>\n<li>At the Viewer object, create an internal tag called <b>ComputerName<\/b>.<\/li>\n<li>At <b>ComputerName <\/b>tag&#8217;s <i>OnStartRunning <\/i>event, insert a script searching for the computer&#8217;s name.<\/li>\n<\/ul>\n<p><b>Accessing the Exclusive Screen <\/b><\/p>\n<p>When calling the exclusive screen, you must first check if it is already being accessed, or even if it allows any access. If access is granted to the screen, you must save in one variable the name of the computer to which the screen is exclusive.\u00a0 Since this is a unique variable, used for all computers connected to the application, it must exist in the server. To do so, follow these procedures:<\/p>\n<ul>\n<li>At the data server, create an internal tag called <b>AccessExclusiveScreen<\/b>.<\/li>\n<li>At the button set up to call the exclusive screen, create the following script:<\/li>\n<\/ul>\n<div align=\"left\"><span style=\"font-family: Courier New;\">Sub CommandButton1_Click()<\/span><br \/>\n<span style=\"font-family: Courier New;\">&#8216;Access to exclusive screen <\/span><\/p>\n<p><span style=\"font-family: Courier New;\">if Application.GetObject(&#8220;Data.AccessExclusiveScreen&#8221;).Value <> &#8220;&#8221; then\u00a0\u00a0\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 &#8216;Access denied<\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 MsgBox &#8220;This screen has already been opened by another user!&#8221;, &#8220;Warning&#8221;, vbInformation<\/span><br \/>\n<span style=\"font-family: Courier New;\">else\u00a0\u00a0\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 &#8216;Passes the name of the computer to the exclusive screen\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 Application.GetObject(&#8220;Data.AccessExclusiveScreen&#8221;).Value = Application.Item(&#8220;ComputerName&#8221;).Value<\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 &#8216;Opens the screen<\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 Application.DoModal &#8220;ExclusiveScreen&#8221;, &#8220;&#8221;, 0, 0,\u00a0 ,\u00a0 , 0, 1+2+64+2048<\/span><br \/>\n<span style=\"font-family: Courier New;\">end if\u00a0\u00a0\u00a0\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">End Sub<\/span><\/div>\n<p><b>Clearing access <\/b><\/p>\n<p>When closing the exclusive screen, you must clear the variable storing the name of the computer that was being connected. To do so, insert the following script at <i>OnStopRunning <\/i>event:<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">Sub ExclusiveScreen_OnStopRunning()<\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 &#8216;Clears access to another user <\/span><br \/>\n<span style=\"font-family: Courier New;\">\u00a0 Application.GetObject(&#8220;Data.AccessExclusiveScreen&#8221;).Value = &#8220;&#8221;\u00a0\u00a0\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">End Sub<\/span><\/div>\n<p><b><span style=\"color: #3366ff; font-size: large;\">Exercises<\/span><\/b><\/p>\n<ol>\n<li>Create an application implementing the exclusive screen logic.<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the Viewer object, you can create a folder with the following tag types: Conter, Demo, Internal, and Timer. These variables must be created separately in each Viewer when the&hellip;<\/p>\n","protected":false},"author":1,"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":[767],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using the Viewer in Elipse E3: Chapter 10 - Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:] - Elipse Knowledgebase<\/title>\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\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.\" \/>\n<meta property=\"og:description\" content=\"In the Viewer object, you can create a folder with the following tag types: Conter, Demo, Internal, and Timer. These variables must be created separately in each Viewer when the&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\" \/>\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=\"2019-03-25T20:44:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-04T20:01:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5283\/1.png\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Using the Viewer in Elipse E3: Chapter 10 &#8211; Viewer Tags.\",\"datePublished\":\"2019-03-25T20:44:59+00:00\",\"dateModified\":\"2019-07-04T20:01:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\"},\"wordCount\":856,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Viewer\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\",\"name\":\"[:pt]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:en]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:44:59+00:00\",\"dateModified\":\"2019-07-04T20:01:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using the Viewer in Elipse E3: Chapter 10 &#8211; Viewer Tags.\"}]},{\"@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\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using the Viewer in Elipse E3: Chapter 10 - Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:] - Elipse Knowledgebase","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\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:en]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:] - Elipse Knowledgebase","og_description":"In the Viewer object, you can create a folder with the following tag types: Conter, Demo, Internal, and Timer. These variables must be created separately in each Viewer when the&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:44:59+00:00","article_modified_time":"2019-07-04T20:01:16+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5283\/1.png"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Using the Viewer in Elipse E3: Chapter 10 &#8211; Viewer Tags.","datePublished":"2019-03-25T20:44:59+00:00","dateModified":"2019-07-04T20:01:16+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/"},"wordCount":856,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Viewer"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/","url":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/","name":"[:pt]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:en]Using the Viewer in Elipse E3: Chapter 10 - Viewer Tags.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:44:59+00:00","dateModified":"2019-07-04T20:01:16+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/using-the-viewer-in-elipse-e3-chapter-10-viewer-tags\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Using the Viewer in Elipse E3: Chapter 10 &#8211; Viewer Tags."}]},{"@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\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3584"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3584"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3584\/revisions"}],"predecessor-version":[{"id":7419,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3584\/revisions\/7419"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}