<?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 Re: script module with if condition of a data loading field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605103#M681231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you need to see all the rows (and export from the chart) add as dimension the date_i&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;d field ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 09:05:12 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-03-21T09:05:12Z</dc:date>
    <item>
      <title>script module with if condition of a data loading field</title>
      <link>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605102#M681229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script module in a trigger on post reload action that exports an excel file from a chart.&lt;/P&gt;&lt;P&gt;The script is :&lt;/P&gt;&lt;P&gt;Sub ExportFiles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pathcorp="c:\sales\"&lt;/P&gt;&lt;P&gt;set corp = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;corp.ExportBiff pathcorp &amp;amp; "Sales.xls"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The dimension of the chart is the field "store" and the expression is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum ( { &amp;lt;date_id = { '$(=vdate)' } &amp;gt; } sales ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The date_id and sales are fields and vdate is a variable that returns the current date.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My issue is how can i export from a script module the data for all the stores i have .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What changes have to do in the script and the expression of the chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605102#M681229</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-03-21T09:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: script module with if condition of a data loading field</title>
      <link>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605103#M681231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you need to see all the rows (and export from the chart) add as dimension the date_i&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;d field ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605103#M681231</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-21T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: script module with if condition of a data loading field</title>
      <link>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605104#M681233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you tell me.&lt;/P&gt;&lt;P&gt;I want from this one chart to export data that concern each store, by store with the script module.&lt;/P&gt;&lt;P&gt;Let's say Store_101.xls ,Store_102.xls&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-module-with-if-condition-of-a-data-loading-field/m-p/605104#M681233</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-03-21T09:12:18Z</dc:date>
    </item>
  </channel>
</rss>

