<?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 Capturing Environment variable and displaying the columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169177#M40079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton, this worked as I expected, I had used implemented this also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kingshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 23:52:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-13T23:52:30Z</dc:date>
    <item>
      <title>Capturing Environment variable and displaying the columns</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169175#M40077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a business requirement where I need to capture the user environment variable i.e if the user is using english or japanese version of the operating system then display a particular column. For example for the english users I want to display column A,B,C and for japanese users I want to display columns A, B and F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the way to acheive it if anyone has experienced similar kind of situation earlier. If any other piece of information is required from my side on this please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kingshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 21:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169175#M40077</guid>
      <dc:creator />
      <dc:date>2011-01-13T21:46:44Z</dc:date>
    </item>
    <item>
      <title>Capturing Environment variable and displaying the columns</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169176#M40078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems there may be a few ways to do it using VBScript. I don't think there is anything built in to QlikView.&lt;/P&gt;&lt;P&gt;First, you would use VBScript to detect the language and then write the value to a variable and use that variable to control your charts. This following subroutine will display the language in a message box. The language is identified by a number. You may want to test which numbers your users get when they run it (make sure the security in your module window is set to System Access/Allow System Access).&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Lang&lt;BR /&gt; Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime")&lt;BR /&gt; strComputer = "."&lt;BR /&gt; Set objWMIService = GetObject("winmgmts:" &amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp;&lt;BR /&gt; strComputer &amp;amp; "\root\cimv2")&lt;BR /&gt;&lt;BR /&gt; Set colOperatingSystems = objWMIService.ExecQuery&lt;BR /&gt; ("Select * from Win32_OperatingSystem")&lt;BR /&gt;&lt;BR /&gt; For Each objOperatingSystem in colOperatingSystems&lt;BR /&gt; msgbox("OS Language: " &amp;amp; objOperatingSystem.OSLanguage)&lt;BR /&gt; Next&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You could rewrite the MsgBox line to store the value in a variable with:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ActiveDocument.Variables("vLang").SetContent objOperatingSystem.OSLanguage, true&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then in column C/F, make the expression: If(vLang=1033, C, F)&lt;/P&gt;&lt;P&gt;Where C is the expression for C and F is the expression for F.&lt;/P&gt;&lt;P&gt;This should show which code equals which language: &lt;A href="http://www.science.co.il/Language/Locale-Codes.asp?s=decimal"&gt;http://www.science.co.il/Language/Locale-Codes.asp?s=decimal&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 22:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169176#M40078</guid>
      <dc:creator />
      <dc:date>2011-01-13T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Capturing Environment variable and displaying the columns</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169177#M40079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton, this worked as I expected, I had used implemented this also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kingshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 23:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-Environment-variable-and-displaying-the-columns/m-p/169177#M40079</guid>
      <dc:creator />
      <dc:date>2011-01-13T23:52:30Z</dc:date>
    </item>
  </channel>
</rss>

