<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic get the USERNAME in the MACRO module in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234234#M85696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That`s how you can get the content.&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;BR /&gt; msgbox(v.GetContent.String)&lt;/P&gt;&lt;P&gt;If you use authenticated user that will probably be DOMAIN\USER (you can check that with the new macro).&lt;/P&gt;&lt;P&gt;After you set the value you can check it on the variable overview (settings menu)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 21:50:58 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-04-28T21:50:58Z</dc:date>
    <item>
      <title>get the USERNAME in the MACRO module</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234231#M85693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using section access and want to take the username from the table created by the section access. Want to do that in the macro module and using if statement&lt;/P&gt;&lt;P&gt;example if vUsername='David' .... bla bla ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 20:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234231#M85693</guid>
      <dc:creator>ivan_will</dc:creator>
      <dc:date>2011-04-28T20:14:28Z</dc:date>
    </item>
    <item>
      <title>get the USERNAME in the MACRO module</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234232#M85694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;If you want the authenticated user (NTNAME on section access you use the first line&lt;/P&gt;&lt;P&gt;Use the second if you want to get the user name (when you use user name and password)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub setUser&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.GetVariable("vUser") v.SetContent ActiveDocument.GetLayout.AuthenticatedUser,true&lt;/P&gt;&lt;P&gt;' v.SetContent ActiveDocument.GetLayout.QvUser,true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 21:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234232#M85694</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-28T21:12:20Z</dc:date>
    </item>
    <item>
      <title>get the USERNAME in the MACRO module</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234233#M85695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still having problems!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub setUser&lt;/P&gt;&lt;P&gt;set vMacroUser = ActiveDocument.GetVariable("vUser")&lt;/P&gt;&lt;P&gt;vMacroUser .SetContent ActiveDocument.GetLayout.AuthenticatedUser,true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub PlaySound&lt;/P&gt;&lt;P&gt;If vMacroUser = "????" Then&lt;/P&gt;&lt;P&gt;ActiveDocument.PlaySound "C:\WINDOWS\Media\tada.wav"&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;it dont play the sound ! Don't know why ?! and could you please tell how to check what value has the variables in the macros&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 21:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234233#M85695</guid>
      <dc:creator>ivan_will</dc:creator>
      <dc:date>2011-04-28T21:45:24Z</dc:date>
    </item>
    <item>
      <title>get the USERNAME in the MACRO module</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234234#M85696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That`s how you can get the content.&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;BR /&gt; msgbox(v.GetContent.String)&lt;/P&gt;&lt;P&gt;If you use authenticated user that will probably be DOMAIN\USER (you can check that with the new macro).&lt;/P&gt;&lt;P&gt;After you set the value you can check it on the variable overview (settings menu)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 21:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-USERNAME-in-the-MACRO-module/m-p/234234#M85696</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-28T21:50:58Z</dc:date>
    </item>
  </channel>
</rss>

