<?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 Reload the script after changing the table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Reload-the-script-after-changing-the-table/m-p/1667038#M50276</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am loading in tables and doing calculations in the following manner:&lt;/P&gt;&lt;P&gt;step 1: Load Table A from SQL&lt;/P&gt;&lt;P&gt;Step 2: Load table B from SQL. Based on a match, pull some values from Table A and assign them to records in Table B.&lt;/P&gt;&lt;P&gt;Step 3: Some values are not assigned in Table B because there was no match in Table A. So, i create a Table C which will have all the missing values from Table A and then i JOIN Table A and C (Some kind of Concatenation).&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;&lt;STRONG&gt;Now Table A has new rows that were generated by Table C. So far, all this works !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My task:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to reload Table B in a way so it can use the new data from Table A and assign the values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Known problems:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since i know what the values missing from Table A (in this case) i add them to the SQL and do the load without creating Table C and the app works fine. All assignments are correct.&lt;STRONG&gt; However&lt;/STRONG&gt;, when i try the method stated above and create Table C, concatenate with Table A and reload Table B the second time, the assignment is still not done even though the rows exist in Table A now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My ask:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can i reload Table B so it the assignments are done correctly?&lt;/P&gt;&lt;P&gt;Following images will be used to illustrate the above issue:&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table A.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27123iB171BBBCA022328C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table A.PNG" alt="Table A.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table B.PNG" style="width: 545px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27124i774EB3077609E80B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table B.PNG" alt="Table B.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see the in the last column pointed at by the ridiculously big blue arrow that there is a null value in row 3 which means the correct value doesnt exist in Table A.&lt;/P&gt;&lt;P&gt;Table C:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table C.PNG" style="width: 945px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27125i242B408BE96887EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table C.PNG" alt="Table C.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the above table is created at run time by filtering out the Nulls from Table B&amp;gt;Column LINKTORULE (pointed by blue arrow)&lt;/P&gt;&lt;P&gt;Table C and A joined:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table C and Tbale A Joined into 1.PNG" style="width: 803px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27126i166D7706DB507322/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table C and Tbale A Joined into 1.PNG" alt="Table C and Tbale A Joined into 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Table C is joined at the end of Table A which is desired output.&lt;/P&gt;&lt;P&gt;What i have tried so far:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate

[Final_Table]:
Load *
Resident [Table B];
Drop Table [Table B];
&lt;/LI-CODE&gt;&lt;P&gt;Result of this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reuslt.PNG" style="width: 573px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27127i6B10F0A914A8E93D/image-dimensions/573x261?v=v2" width="573" height="261" role="button" title="Reuslt.PNG" alt="Reuslt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;as it can be seen, the new values are not fetched from Table A.&lt;/P&gt;&lt;P&gt;I appreciate any help. Thank you.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:32:18 GMT</pubDate>
    <dc:creator>waleeed_mahmood</dc:creator>
    <dc:date>2024-11-16T03:32:18Z</dc:date>
    <item>
      <title>Reload the script after changing the table</title>
      <link>https://community.qlik.com/t5/App-Development/Reload-the-script-after-changing-the-table/m-p/1667038#M50276</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am loading in tables and doing calculations in the following manner:&lt;/P&gt;&lt;P&gt;step 1: Load Table A from SQL&lt;/P&gt;&lt;P&gt;Step 2: Load table B from SQL. Based on a match, pull some values from Table A and assign them to records in Table B.&lt;/P&gt;&lt;P&gt;Step 3: Some values are not assigned in Table B because there was no match in Table A. So, i create a Table C which will have all the missing values from Table A and then i JOIN Table A and C (Some kind of Concatenation).&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;&lt;STRONG&gt;Now Table A has new rows that were generated by Table C. So far, all this works !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My task:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to reload Table B in a way so it can use the new data from Table A and assign the values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Known problems:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since i know what the values missing from Table A (in this case) i add them to the SQL and do the load without creating Table C and the app works fine. All assignments are correct.&lt;STRONG&gt; However&lt;/STRONG&gt;, when i try the method stated above and create Table C, concatenate with Table A and reload Table B the second time, the assignment is still not done even though the rows exist in Table A now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My ask:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can i reload Table B so it the assignments are done correctly?&lt;/P&gt;&lt;P&gt;Following images will be used to illustrate the above issue:&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table A.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27123iB171BBBCA022328C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table A.PNG" alt="Table A.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table B.PNG" style="width: 545px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27124i774EB3077609E80B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table B.PNG" alt="Table B.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see the in the last column pointed at by the ridiculously big blue arrow that there is a null value in row 3 which means the correct value doesnt exist in Table A.&lt;/P&gt;&lt;P&gt;Table C:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table C.PNG" style="width: 945px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27125i242B408BE96887EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table C.PNG" alt="Table C.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the above table is created at run time by filtering out the Nulls from Table B&amp;gt;Column LINKTORULE (pointed by blue arrow)&lt;/P&gt;&lt;P&gt;Table C and A joined:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table C and Tbale A Joined into 1.PNG" style="width: 803px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27126i166D7706DB507322/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table C and Tbale A Joined into 1.PNG" alt="Table C and Tbale A Joined into 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Table C is joined at the end of Table A which is desired output.&lt;/P&gt;&lt;P&gt;What i have tried so far:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate

[Final_Table]:
Load *
Resident [Table B];
Drop Table [Table B];
&lt;/LI-CODE&gt;&lt;P&gt;Result of this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reuslt.PNG" style="width: 573px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27127i6B10F0A914A8E93D/image-dimensions/573x261?v=v2" width="573" height="261" role="button" title="Reuslt.PNG" alt="Reuslt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;as it can be seen, the new values are not fetched from Table A.&lt;/P&gt;&lt;P&gt;I appreciate any help. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reload-the-script-after-changing-the-table/m-p/1667038#M50276</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2024-11-16T03:32:18Z</dc:date>
    </item>
  </channel>
</rss>

