<?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: Load selected files that listed in another table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775444#M64280</link>
    <description>&lt;P&gt;hi,&amp;nbsp;may this workaround steps give result&lt;/P&gt;&lt;P&gt;1. Master Product Table and Standard file name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_0-1611034555304.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47300i47C222B257679952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_0-1611034555304.png" alt="Ksrinivasan_0-1611034555304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Today Master plan list may be 1,4,5,6,9 and 10,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_1-1611034580120.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47301i9B779DE728F74DC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_1-1611034580120.png" alt="Ksrinivasan_1-1611034580120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. we have to Arrive the below product and file list by Script&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_2-1611034611105.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47302iCE46A8374E1AD5F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_2-1611034611105.png" alt="Ksrinivasan_2-1611034611105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Convert product and file name as variable with row count&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_3-1611034647628.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47303iDB91E6E65CEC8FE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_3-1611034647628.png" alt="Ksrinivasan_3-1611034647628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. set loop total file to be uploaded count=6&lt;/P&gt;&lt;P&gt;set loop for loading file from count 1 to 6 by respective file variable name.&lt;/P&gt;&lt;P&gt;Note daily we have to run daily Master plan script, before file load script. daily product may vary, so we need to capture real list of product.&lt;/P&gt;&lt;P&gt;Ksrinivasan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 05:44:47 GMT</pubDate>
    <dc:creator>Ksrinivasan</dc:creator>
    <dc:date>2021-01-19T05:44:47Z</dc:date>
    <item>
      <title>Load selected files that listed in another table</title>
      <link>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775420#M64279</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to load selected files that are listed in another table, and ignore others.&lt;/P&gt;&lt;P&gt;My situation is as follow.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The QS is loading files from the folders organized by date.&lt;BR /&gt;Ex. C:\Data\YYYYMMDD\BOM_ProductNumberXXX.xls&lt;/LI&gt;&lt;LI&gt;The users will upload the files as when the new files are available.&lt;/LI&gt;&lt;LI&gt;There is&amp;nbsp; MasterPlan.xls that contain all the in-scope products, along with other info for each products. This spreadsheet is loaded into the QS.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What happen is that the users are not following the list of the products in the MasterPlan and there are files that not required being uploaded as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my load scrip.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;TableMasterPlan:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;LOAD&lt;BR /&gt;Site,&lt;BR /&gt;Business,&lt;BR /&gt;PLC,&lt;BR /&gt;Trim(Products) as Products,&lt;BR /&gt;ProductDescription,&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;FROM [$(vRefTablePath)/MasterPlan.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is MasterPlan);&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;FOR Each vDir in DirList('$(vDataPath)/*')&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;FOR each vFile in filelist (vDir&amp;amp;'\*.xls' )&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Table:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;LOAD Distinct&lt;BR /&gt;TRIM(Mid(filebasename(), 16)) as Products,&lt;BR /&gt;Date(Floor(FileTime())) as ReportDate,&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162068"&gt;@13&lt;/a&gt; as SpecID,&lt;BR /&gt;@2 as MatlNumber,&lt;BR /&gt;@3 as MatlDescription,&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/284384"&gt;@14&lt;/a&gt; as "Spec. Type"&lt;BR /&gt;FROM&amp;nbsp;[$(vFile)]&amp;nbsp;(biff, no labels, header is 10 lines)&lt;BR /&gt;Where &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/284384"&gt;@14&lt;/a&gt;='MAT_PART_E';&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Next vFile&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Next&amp;nbsp;vDir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any suggestion that you may have to modify the load script to load just the products listed in the MasterPlan table. For ex., if there are 50 files in the folder, and the Masterplan has 20 products, the load script will load the files matching the Products in Masterplan, and skip others.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775420#M64279</guid>
      <dc:creator>A7R3</dc:creator>
      <dc:date>2024-11-16T17:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected files that listed in another table</title>
      <link>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775444#M64280</link>
      <description>&lt;P&gt;hi,&amp;nbsp;may this workaround steps give result&lt;/P&gt;&lt;P&gt;1. Master Product Table and Standard file name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_0-1611034555304.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47300i47C222B257679952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_0-1611034555304.png" alt="Ksrinivasan_0-1611034555304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Today Master plan list may be 1,4,5,6,9 and 10,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_1-1611034580120.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47301i9B779DE728F74DC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_1-1611034580120.png" alt="Ksrinivasan_1-1611034580120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. we have to Arrive the below product and file list by Script&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_2-1611034611105.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47302iCE46A8374E1AD5F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_2-1611034611105.png" alt="Ksrinivasan_2-1611034611105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Convert product and file name as variable with row count&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_3-1611034647628.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47303iDB91E6E65CEC8FE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_3-1611034647628.png" alt="Ksrinivasan_3-1611034647628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. set loop total file to be uploaded count=6&lt;/P&gt;&lt;P&gt;set loop for loading file from count 1 to 6 by respective file variable name.&lt;/P&gt;&lt;P&gt;Note daily we have to run daily Master plan script, before file load script. daily product may vary, so we need to capture real list of product.&lt;/P&gt;&lt;P&gt;Ksrinivasan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 05:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775444#M64280</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-19T05:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected files that listed in another table</title>
      <link>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775446#M64281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80712"&gt;@Ksrinivasan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looks like we have the similar situation to handle. Thanks for your suggestion. In my case, the MasterPlan rarely changes, but the approach may still work.&lt;/P&gt;&lt;P&gt;I think the current script already cater for&amp;nbsp;for#1 and #2. I can pick up the correct file name to load. Could you help to suggest the changes for #4 to #5?&lt;/P&gt;&lt;P&gt;BTW, each folder may not have all the files. For ex., in the 20201201 folder, it may have 2 out of 6 files required. In the 20201215 folder, it may another 5 out of 6 files required. So the "upload count" needs to be flexible.&lt;/P&gt;&lt;P&gt;Greatly appreciate your advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/1775446#M64281</guid>
      <dc:creator>A7R3</dc:creator>
      <dc:date>2021-01-19T06:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected files that listed in another table</title>
      <link>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/2514768#M105568</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FOR Each vDir in DirList('$(vDataPath)/*')&lt;/P&gt;&lt;P&gt;FOR each vFile in filelist (vDir&amp;amp;'\*.xls' )&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD Distinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRIM(Mid(filebasename(), 16)) as Products,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Date(Floor(FileTime())) as ReportDate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162068" target="_blank" rel="noopener"&gt;@13&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;as SpecID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@2 as MatlNumber,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@3 as MatlDescription,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/284384" target="_blank" rel="noopener"&gt;@14&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;as "Spec. Type"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM&amp;nbsp;[$(vFile)]&amp;nbsp;(biff, no labels, header is 10 lines)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/284384" target="_blank" rel="noopener"&gt;@14&lt;/A&gt;&lt;SPAN&gt;='MAT_PART_E' and exists('Products',TRIM(Mid(filebasename(), 16)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next vFile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next vDir&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 19:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-selected-files-that-listed-in-another-table/m-p/2514768#M105568</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2025-04-18T19:53:30Z</dc:date>
    </item>
  </channel>
</rss>

