<?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 Dynamic Script to Load/Update Tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Script-to-Load-Update-Tables/m-p/1792282#M1210800</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a script that does what I want for 1 table in my whole document... but there are a ton of tables so I'd like to figure out how to write a dynamic script to update all the tables in a similar fashion.&lt;/P&gt;&lt;P&gt;Basically, I have a temporary Link table (LinkNew) that holds all the primary keys in each table (i.e. %BillLineKey, %ItemKey, %SOrderLineKey, %InventoryKey, etc.), and I'm using that to update which keys/records should be included in all the new tables.&lt;/P&gt;&lt;P&gt;This is the part of my script I'd like to be dynamic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Left Join(Billing)
LOAD Distinct %BillLineKey,
%BillLineKey as %BillLineKey2
Resident LinkNew;

NoConcatenate
Billing2:
LOAD *
Resident Billing
where %BillLineKey &amp;lt;&amp;gt; %BillLineKey2;

Drop Table Billing;
Drop field %BillLineKey2 from Billing2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the above example was for updating my Billing table... is there a way to loop through each table and do this dynamically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 17:18:09 GMT</pubDate>
    <dc:creator>benvatvandata</dc:creator>
    <dc:date>2021-03-17T17:18:09Z</dc:date>
    <item>
      <title>Dynamic Script to Load/Update Tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Script-to-Load-Update-Tables/m-p/1792282#M1210800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a script that does what I want for 1 table in my whole document... but there are a ton of tables so I'd like to figure out how to write a dynamic script to update all the tables in a similar fashion.&lt;/P&gt;&lt;P&gt;Basically, I have a temporary Link table (LinkNew) that holds all the primary keys in each table (i.e. %BillLineKey, %ItemKey, %SOrderLineKey, %InventoryKey, etc.), and I'm using that to update which keys/records should be included in all the new tables.&lt;/P&gt;&lt;P&gt;This is the part of my script I'd like to be dynamic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Left Join(Billing)
LOAD Distinct %BillLineKey,
%BillLineKey as %BillLineKey2
Resident LinkNew;

NoConcatenate
Billing2:
LOAD *
Resident Billing
where %BillLineKey &amp;lt;&amp;gt; %BillLineKey2;

Drop Table Billing;
Drop field %BillLineKey2 from Billing2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the above example was for updating my Billing table... is there a way to loop through each table and do this dynamically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 17:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Script-to-Load-Update-Tables/m-p/1792282#M1210800</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2021-03-17T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Script to Load/Update Tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Script-to-Load-Update-Tables/m-p/1792294#M1210801</link>
      <description>&lt;P&gt;So just to add another example... after it updates my Billing table, it would then do the following for the next table (i.e. SOrderLine):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Left Join(SOrderLine)
LOAD Distinct %SOrderLineKey,
%SOrderLineKey as %SOrderLineKey
Resident LinkNew;

NoConcatenate
SOrderLine2:
LOAD *
Resident SOrderLine
where %SOrderLineKey &amp;lt;&amp;gt; %SOrderLineKey2;

Drop Table SOrderLine;
Drop field %SOrderLineKey2 from SOrderLine2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 17:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Script-to-Load-Update-Tables/m-p/1792294#M1210801</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2021-03-17T17:34:08Z</dc:date>
    </item>
  </channel>
</rss>

