<?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 How to get a field value into a variable through macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231304#M83072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to assign a field value to a variable through macro , on document open.&lt;/P&gt;&lt;P&gt;Field contain only one value,&lt;/P&gt;&lt;P&gt;How to assign it to a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Dec 2010 08:18:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-23T08:18:04Z</dc:date>
    <item>
      <title>How to get a field value into a variable through macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231304#M83072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to assign a field value to a variable through macro , on document open.&lt;/P&gt;&lt;P&gt;Field contain only one value,&lt;/P&gt;&lt;P&gt;How to assign it to a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 08:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231304#M83072</guid>
      <dc:creator />
      <dc:date>2010-12-23T08:18:04Z</dc:date>
    </item>
    <item>
      <title>How to get a field value into a variable through macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231305#M83073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;H4&gt;ActiveDocument.Variables("vVarA").SETCONTENT ActiveDocument.Fields("SomeField").GetSelectedValues.item(0).text,TRUE&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 08:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231305#M83073</guid>
      <dc:creator />
      <dc:date>2010-12-23T08:33:08Z</dc:date>
    </item>
    <item>
      <title>How to get a field value into a variable through macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231306#M83074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually field contain only one value which is not selected&lt;/P&gt;&lt;P&gt;So we can't use &lt;STRONG&gt;GetSelectedValues&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls give alternative ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if we want to get all the values of a field (selected / not selected)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and want to assign it to a variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 09:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231306#M83074</guid>
      <dc:creator />
      <dc:date>2010-12-23T09:53:59Z</dc:date>
    </item>
    <item>
      <title>How to get a field value into a variable through macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231307#M83075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually Field that i am using contain only one value&lt;/P&gt;&lt;P&gt;I don't want to select it ,&lt;/P&gt;&lt;P&gt;I want values of field(&lt;STRONG&gt;both selected and non selected&lt;/STRONG&gt;) by default through macro&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;Getselectedvalues can't work&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 09:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231307#M83075</guid>
      <dc:creator />
      <dc:date>2010-12-23T09:56:51Z</dc:date>
    </item>
    <item>
      <title>How to get a field value into a variable through macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231308#M83076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;H4&gt;IF ActiveDocument.Fields("SOMEFIELD").GetPossibleValues.COUNT=1 THEN&lt;/H4&gt;&lt;H4&gt;ActiveDocument.Variables("vVarA").SETCONTENT ActiveDocument.Fields("SOMEFIELD").GetPossibleValues.item(0).text,TRUE&lt;/H4&gt;&lt;H4&gt;end if&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 10:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-field-value-into-a-variable-through-macro/m-p/231308#M83076</guid>
      <dc:creator />
      <dc:date>2010-12-23T10:05:55Z</dc:date>
    </item>
  </channel>
</rss>

