<?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 Macro to export images based on the selection made in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-images-based-on-the-selection-made-in-Qlikview/m-p/1404822#M425539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a macro to export images from multiple graphs based on the user selection.&lt;/P&gt;&lt;P&gt;I have created a button so whenever a user click on the button a set of predefined graphs need to be exported for user selection. These graphs need to be saved on the desired path based on the Selection name. eg. if its an aging graph and the user has selected 'CONNECT' application then the graph needs to be saved as 'Aging_Connect'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following lines but it seems to&amp;nbsp; throw an error on selection of the value stating that 'Wrong number of arguments or invalid property assignment'. Does not Select statement take string values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expSelection = ActiveDocument.fields("Application").getSelectedvalues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public sub macro_exportimages()&lt;/P&gt;&lt;P&gt;set expSelection = ActiveDocument.fields("Application").getSelectedvalues&lt;BR /&gt;msgbox (expSelection)&lt;/P&gt;&lt;P&gt;select Case expSelection&lt;/P&gt;&lt;P&gt;Case "CONNECT"&lt;BR /&gt;ActiveDocument.Sheets("Sheet3").SheetObjects("CH250").ExportBitmapToFile "C:\Users\43862460\Reports\WIP\TestImages\Weekly_Aging_CONNECT.jpg"&lt;/P&gt;&lt;P&gt;Case Else&lt;BR /&gt;msgbox "Nothing to export"&lt;/P&gt;&lt;P&gt;End Select&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 07:55:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-13T07:55:28Z</dc:date>
    <item>
      <title>Macro to export images based on the selection made in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-images-based-on-the-selection-made-in-Qlikview/m-p/1404822#M425539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a macro to export images from multiple graphs based on the user selection.&lt;/P&gt;&lt;P&gt;I have created a button so whenever a user click on the button a set of predefined graphs need to be exported for user selection. These graphs need to be saved on the desired path based on the Selection name. eg. if its an aging graph and the user has selected 'CONNECT' application then the graph needs to be saved as 'Aging_Connect'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following lines but it seems to&amp;nbsp; throw an error on selection of the value stating that 'Wrong number of arguments or invalid property assignment'. Does not Select statement take string values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expSelection = ActiveDocument.fields("Application").getSelectedvalues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public sub macro_exportimages()&lt;/P&gt;&lt;P&gt;set expSelection = ActiveDocument.fields("Application").getSelectedvalues&lt;BR /&gt;msgbox (expSelection)&lt;/P&gt;&lt;P&gt;select Case expSelection&lt;/P&gt;&lt;P&gt;Case "CONNECT"&lt;BR /&gt;ActiveDocument.Sheets("Sheet3").SheetObjects("CH250").ExportBitmapToFile "C:\Users\43862460\Reports\WIP\TestImages\Weekly_Aging_CONNECT.jpg"&lt;/P&gt;&lt;P&gt;Case Else&lt;BR /&gt;msgbox "Nothing to export"&lt;/P&gt;&lt;P&gt;End Select&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 07:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-images-based-on-the-selection-made-in-Qlikview/m-p/1404822#M425539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-13T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export images based on the selection made in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-images-based-on-the-selection-made-in-Qlikview/m-p/1404823#M425540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This example from the API shows how to loop through the selected values in a afield:&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("Month").GetSelectedValues&lt;/P&gt;&lt;P&gt;for i=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if val.Item(i).IsNumeric then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(val.Item(i).Number)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(val.Item(i).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-images-based-on-the-selection-made-in-Qlikview/m-p/1404823#M425540</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-09-13T12:05:17Z</dc:date>
    </item>
  </channel>
</rss>

