<?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 fieldvalues into a macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143245#M22518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, corleone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;set mySelections= ActiveDocument.Fields("Field1").GetSelectedValues&lt;BR /&gt;for i=0 to mySelections.Count-1&lt;BR /&gt; set currentValue = mySelections.Item(i).text&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 21:04:46 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2009-05-04T21:04:46Z</dc:date>
    <item>
      <title>How to get fieldvalues into a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143243#M22516</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 use following macro to print a report and save a file as:&lt;/P&gt;&lt;P&gt;sub printRP04&lt;BR /&gt;reportFile = "c:" &amp;amp; "" &amp;amp; &lt;B&gt;reportID&lt;/B&gt; &amp;amp; "_" &amp;amp; &lt;B&gt;fieldID&lt;/B&gt; &amp;amp; "_" &amp;amp; &lt;B&gt;reportName&lt;/B&gt; &amp;amp; ".pdf"&lt;BR /&gt;printReportPDF reportFile&lt;BR /&gt;ActiveDocument.PrintReport "RP12", "QlikViewPDF"&lt;BR /&gt;end sub&lt;BR /&gt;Function printReportPDF(pdfOutputFile)&lt;BR /&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt;WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt;WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;BR /&gt;Set WSHShell = nothing&lt;BR /&gt;End function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now reportID, fieldID and reportName i want to replace against 3 actual selected fields so the file gets the right name to save......this is my first macro so i dont now how to get the fieldvalues into the macro......do i have to care about integer and string? because one of the fields will be an string? can anyone help me with the code and syntax?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 20:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143243#M22516</guid>
      <dc:creator />
      <dc:date>2009-05-04T20:54:43Z</dc:date>
    </item>
    <item>
      <title>How to get fieldvalues into a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143244#M22517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET reportID = ActiveDocument.Fields("reportID").GetPossibleValues&lt;BR /&gt;If reportID.Count&amp;gt;0 Then&lt;BR /&gt; reportFile = "c:" &amp;amp; "\" &amp;amp; &lt;STRONG&gt;&lt;/STRONG&gt;reportID.Item(0).Text&lt;BR /&gt;End IF&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 21:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143244#M22517</guid>
      <dc:creator />
      <dc:date>2009-05-04T21:03:40Z</dc:date>
    </item>
    <item>
      <title>How to get fieldvalues into a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143245#M22518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, corleone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;set mySelections= ActiveDocument.Fields("Field1").GetSelectedValues&lt;BR /&gt;for i=0 to mySelections.Count-1&lt;BR /&gt; set currentValue = mySelections.Item(i).text&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 21:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143245#M22518</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2009-05-04T21:04:46Z</dc:date>
    </item>
    <item>
      <title>How to get fieldvalues into a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143246#M22519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx Mark 4 help........worked for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 21:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-fieldvalues-into-a-macro/m-p/143246#M22519</guid>
      <dc:creator />
      <dc:date>2009-05-04T21:14:21Z</dc:date>
    </item>
  </channel>
</rss>

