<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to login and webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/</id><updated>2020-02-27T17:51:15.714000Z</updated><subtitle>Recent posts to login and webvisu</subtitle><entry><title>login and webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/?limit=25#fad2" rel="alternate"/><published>2020-02-27T17:51:15.714000Z</published><updated>2020-02-27T17:51:15.714000Z</updated><author><name>galexis</name><uri>https://forge.codesys.com/u/galexis/</uri></author><id>https://forge.codesys.com315347acb31898963368394ed75cda5c689d13ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much . But I haven't go VisuElems.currentusergroup is variable....Library VisuElems is install.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>login and webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/?limit=25#b008" rel="alternate"/><published>2020-02-27T17:51:12.783000Z</published><updated>2020-02-27T17:51:12.783000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com92adf498c6ee48ed14852e8df7bb33d8fc6a4823</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; D. Kugler&lt;/p&gt;
&lt;p&gt;You can set the property "Variable" of the lamp directly to the following: VisuElems.CurrentUserGroupId&amp;lt;&amp;gt;0&lt;br/&gt;
UserGroupID 0 belongs to User "None" and appears if nobody is logged in.&lt;br/&gt;
Don't forget to set the checkbox "Use CurrentVisu variable" in the General Settings of the Visualization Manager!&lt;br/&gt;
The UserGroupID's are shown in the Visualization Manager:&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UserGroupID1.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5103"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UserGroupID2.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5102"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UserGroupID.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5101"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>login and webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/?limit=25#6247" rel="alternate"/><published>2020-02-27T17:51:11.749000Z</published><updated>2020-02-27T17:51:11.749000Z</updated><author><name>marks</name><uri>https://forge.codesys.com/u/marks/</uri></author><id>https://forge.codesys.comec706ab00c0adf659130dc17151aa0428a4f52ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm doing this one on one project, and it works well:&lt;/p&gt;
&lt;p&gt;// provide a readable user name, if there isn't one&lt;br/&gt;
HMI.currentUser := WSTRING_TO_STRING( VisuElems.CurrentUserName );&lt;br/&gt;
IF ( LEN( HMI.currentUser ) &amp;lt;= 0 ) THEN&lt;br/&gt;
    HMI.currentUser :=  'None';&lt;br/&gt;
END_IF&lt;br/&gt;
_loggedIn := ( HMI.currentUser &amp;lt;&amp;gt; 'None' );&lt;/p&gt;
&lt;p&gt;Use _loggedIn as a Boolean variable driving a lamp/indicator state.&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>login and webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0b5c136f26/?limit=25#9d03" rel="alternate"/><published>2020-02-27T17:51:10.714000Z</published><updated>2020-02-27T17:51:10.714000Z</updated><author><name>galexis</name><uri>https://forge.codesys.com/u/galexis/</uri></author><id>https://forge.codesys.com762e7fc5b55e40caa38d6ec0415c40c12da7987f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
how to switch on a light on webvisu, when user is login ?&lt;br/&gt;
Thanks for your help.&lt;br/&gt;
Bets regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>