<?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 Unable to set the variable name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175247#M43772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I used following expression&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; &amp;lt;Field1&amp;gt;,&lt;BR /&gt; &amp;lt;Field2&amp;gt;,&lt;BR /&gt; &amp;lt;Field3&amp;gt;&lt;BR /&gt; resident Directory&lt;BR /&gt; where &amp;lt;Field4&amp;gt; = = ActiveDocument.Variables("vSheetName");&lt;BR /&gt;but it is giving following error,&lt;/P&gt;&lt;P&gt;ACTIVEDOCUMENT.VARIABLES is not a valid function.&lt;/P&gt;&lt;P&gt;Any other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 14:03:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-03T14:03:44Z</dc:date>
    <item>
      <title>Unable to set the variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175244#M43769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;Hi All,&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;I am trying to set a variable with the sheet name and want to use that variable value in edit script to filter data set further. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;I doing this in the following steps:&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Step 1&amp;amp;gt; Setting the variable name with the sheetname sub SheetSelection set vSheetName = ActiveDocument.ActiveSheet.GetProperties.Name end sub &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Step 2&amp;amp;gt; Calling this macro at OnActivateSheet event. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Step 3&amp;amp;gt; On the basis of variable vSheetName, loading the following fields in the edit script&amp;nbsp; and getting Error message at the time of loading data : &amp;amp;lt;Field not found - vSheetName&amp;amp;gt;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Load &amp;lt;br /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;lt;Field1&amp;amp;gt;,&amp;lt;br /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;lt;Field2&amp;amp;gt;,&amp;lt;br /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;lt;Field3&amp;amp;gt;&amp;lt;br /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident Directory&amp;lt;br /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &amp;amp;lt;Field4&amp;amp;gt; = vSheetName;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Please have a look and let me know where i am going wrong. &amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;Thanks in advance&amp;lt;vsheetname&amp;gt;&amp;lt;/vsheetname&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 13:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175244#M43769</guid>
      <dc:creator />
      <dc:date>2010-06-03T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Unable to set the variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175245#M43770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i thing variable will be access using&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vControl")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 13:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175245#M43770</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2010-06-03T13:43:38Z</dc:date>
    </item>
    <item>
      <title>Unable to set the variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175246#M43771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V = Activeocument.ActiveSheet.Variables('Variablename")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strongs,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 13:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175246#M43771</guid>
      <dc:creator />
      <dc:date>2010-06-03T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Unable to set the variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175247#M43772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I used following expression&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; &amp;lt;Field1&amp;gt;,&lt;BR /&gt; &amp;lt;Field2&amp;gt;,&lt;BR /&gt; &amp;lt;Field3&amp;gt;&lt;BR /&gt; resident Directory&lt;BR /&gt; where &amp;lt;Field4&amp;gt; = = ActiveDocument.Variables("vSheetName");&lt;BR /&gt;but it is giving following error,&lt;/P&gt;&lt;P&gt;ACTIVEDOCUMENT.VARIABLES is not a valid function.&lt;/P&gt;&lt;P&gt;Any other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 14:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175247#M43772</guid>
      <dc:creator />
      <dc:date>2010-06-03T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Unable to set the variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175248#M43773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mansi&lt;/P&gt;&lt;P&gt;A macro variable is not seen by QV load script.&lt;/P&gt;&lt;P&gt;Make sure your variable exists or create it first (Settings/Variable Overview)&lt;/P&gt;&lt;P&gt;In your macro use&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.GetVariable("vSheetName")&lt;BR /&gt;v.SetContent "&amp;lt;sheetname&amp;gt;",true&lt;/P&gt;&lt;P&gt;check with Settings/Variable that you have the correct content in the variable.&lt;/P&gt;&lt;P&gt;In the load refer to the variable with $(vSheetName)&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 14:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-set-the-variable-name/m-p/175248#M43773</guid>
      <dc:creator />
      <dc:date>2010-06-03T14:40:50Z</dc:date>
    </item>
  </channel>
</rss>

