<?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: Button to Execute Partial Reload in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2091225#M89451</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80977"&gt;@RafaelBarrios&lt;/a&gt;, thank you for the reply. The script you provided worked i used the&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;partial reload &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;but it caused duplicates.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;So right now i have a vizlib writeback table which i can change values and update the QVD but im looking to have another button to run a partial reload to make changes to the QVD as well. I have attached picture of the dashboard. The "Priority" column you are able to edit but with the writeback it allows you to select duplicate values, what im trying to do is when they hit the partial reload at the top then it takes the "Ranking" value and replaces the "Priority" value so there are no duplicates.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Asuod__0-1688663228138.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111708iD2746EFF336971F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Asuod__0-1688663228138.png" alt="Asuod__0-1688663228138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Writeback Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;let vFileName = 'Milestone_Test.qvd';&lt;/P&gt;
&lt;P&gt;let vFileExists = FileTime(vFileName);&lt;/P&gt;
&lt;P&gt;LET vScriptErrorDetails = ScriptErrorDetails;&lt;/P&gt;
&lt;P&gt;IF vScriptErrorDetails &amp;lt;&amp;gt; Null() THEN&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;
&lt;P&gt;END IF;&lt;/P&gt;
&lt;P&gt;IF vFileExists THEN&lt;/P&gt;
&lt;P&gt;VizlibWritebackTable:&lt;/P&gt;
&lt;P&gt;REPLACE LOAD&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;From "lib://Milestone_Test.qvd" (qvd, utf8);&lt;/P&gt;
&lt;P&gt;ELSE&lt;/P&gt;
&lt;P&gt;VizlibWritebackTable:&lt;/P&gt;
&lt;P&gt;REPLACE LOAD&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;'Ranking','Rank','Priority','Milestone','Milestone_count'&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vScriptErrorDetails = ScriptErrorDetails;&lt;/P&gt;
&lt;P&gt;IF vScriptErrorDetails &amp;lt;&amp;gt; Null() THEN&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;
&lt;P&gt;END IF;&lt;/P&gt;
&lt;P&gt;END IF&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Partital Reload:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;NewMilestones_QVD:&lt;/P&gt;
&lt;P&gt;add only Load distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Milestone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rank,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ranking,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Ranking = Priority, Priority, Ranking) as Priority&lt;/P&gt;
&lt;P&gt;FROM [lib://Milestone_Test.qvd](qvd);&lt;/P&gt;
&lt;P&gt;//without this IF, the STORE will return error on partial reloads&lt;/P&gt;
&lt;P&gt;IF IsPartialReload() THEN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Store NewMilestones_QVD into [lib://Milestone_Test.qvd](qvd);&lt;/P&gt;
&lt;P&gt;ENDIF;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 17:08:32 GMT</pubDate>
    <dc:creator>Asuod_</dc:creator>
    <dc:date>2023-07-06T17:08:32Z</dc:date>
    <item>
      <title>Button to Execute Partial Reload</title>
      <link>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2089649#M89314</link>
      <description>&lt;P&gt;Hello, Im new to qlik sense and using the button widget. I would like to have a button that execute a part of the script in the Data Load Editor to update a QVD.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to execute the script below:&lt;/P&gt;
&lt;P&gt;"NewMilestones_QVD:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Rank,&lt;/P&gt;
&lt;P&gt;Ranking,&lt;/P&gt;
&lt;P&gt;if(Rank = Priority, Priority, Rank) as Priority,&lt;/P&gt;
&lt;P&gt;Milestone,&lt;/P&gt;
&lt;P&gt;FROM [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Store NewMilestones_QVD into [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the button I used: "$(must_include=$(vPartialReloadScript))"&lt;/P&gt;
&lt;P&gt;In the Data Load Editor I used:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"SET vPartialReloadScript = '&lt;/P&gt;
&lt;P&gt;NewMilestones_QVD:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Rank,&lt;/P&gt;
&lt;P&gt;Ranking,&lt;/P&gt;
&lt;P&gt;if(Rank = Priority, Priority, Rank) as Priority,&lt;/P&gt;
&lt;P&gt;Milestone,&lt;/P&gt;
&lt;P&gt;FROM [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Store NewMilestones_QVD into [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;';"&lt;/P&gt;
&lt;P&gt;Not sure if this is the best way to go about this, any assistance is appreciated. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2089649#M89314</guid>
      <dc:creator>Asuod_</dc:creator>
      <dc:date>2023-06-30T18:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Button to Execute Partial Reload</title>
      <link>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2089789#M89331</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135805"&gt;@Asuod_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your button onle need this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_2-1688327649102.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111440i4581DAC414624B8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_2-1688327649102.png" alt="RafaelBarrios_2-1688327649102.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The important thing is that in your script you identify those parts that you want to be executed only when a partial reload is executed&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the following script will execute only in &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;standar reload&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;NewMilestones_QVD:&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Load&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;   Rank,&lt;BR /&gt;   Ranking,&lt;BR /&gt;   if(Rank = Priority, Priority, Rank) as Priority,&lt;BR /&gt;   Milestone,&lt;BR /&gt;FROM [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;BR /&gt;Store NewMilestones_QVD into [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this one will execute on&lt;STRONG&gt;&lt;FONT color="#FF9900"&gt; standar and partial reload&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;NewMilestones_QVD:&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;U&gt;&lt;STRONG&gt;add Load&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;   Rank,&lt;BR /&gt;   Ranking,&lt;BR /&gt;   if(Rank = Priority, Priority, Rank) as Priority,&lt;BR /&gt;   Milestone,&lt;BR /&gt;FROM [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;BR /&gt;Store NewMilestones_QVD into [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this only in&lt;STRONG&gt;&lt;FONT color="#993366"&gt; partial reload&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;NewMilestones_QVD:&lt;BR /&gt;&lt;FONT color="#993366"&gt;&lt;U&gt;&lt;STRONG&gt;add only Load&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;   Rank,&lt;BR /&gt;   Ranking,&lt;BR /&gt;   if(Rank = Priority, Priority, Rank) as Priority,&lt;BR /&gt;   Milestone,&lt;BR /&gt;FROM [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;BR /&gt;&lt;BR /&gt;//without this IF, the STORE will return error on partial reloads&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;IF IsPartialReload() THEN&lt;/FONT&gt; &lt;/STRONG&gt;&lt;BR /&gt;    Store NewMilestones_QVD into [lib://RPA HuNTx Analytics QVD Store/Milestone_Test.qvd](qvd);&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;ENDIF;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also, remember you can set Partial reload in QMC&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_1-1688327574922.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111439i7C1E5DEBCF138938/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_1-1688327574922.png" alt="RafaelBarrios_1-1688327574922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;help users find answers! Don't forget to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;mark a solution&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that worked for you &amp;amp; to smash the&lt;FONT color="#339966"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;like&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 19:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2089789#M89331</guid>
      <dc:creator>RafaelBarrios</dc:creator>
      <dc:date>2023-07-02T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Button to Execute Partial Reload</title>
      <link>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2091225#M89451</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80977"&gt;@RafaelBarrios&lt;/a&gt;, thank you for the reply. The script you provided worked i used the&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;partial reload &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;but it caused duplicates.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;So right now i have a vizlib writeback table which i can change values and update the QVD but im looking to have another button to run a partial reload to make changes to the QVD as well. I have attached picture of the dashboard. The "Priority" column you are able to edit but with the writeback it allows you to select duplicate values, what im trying to do is when they hit the partial reload at the top then it takes the "Ranking" value and replaces the "Priority" value so there are no duplicates.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Asuod__0-1688663228138.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111708iD2746EFF336971F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Asuod__0-1688663228138.png" alt="Asuod__0-1688663228138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Writeback Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;let vFileName = 'Milestone_Test.qvd';&lt;/P&gt;
&lt;P&gt;let vFileExists = FileTime(vFileName);&lt;/P&gt;
&lt;P&gt;LET vScriptErrorDetails = ScriptErrorDetails;&lt;/P&gt;
&lt;P&gt;IF vScriptErrorDetails &amp;lt;&amp;gt; Null() THEN&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;
&lt;P&gt;END IF;&lt;/P&gt;
&lt;P&gt;IF vFileExists THEN&lt;/P&gt;
&lt;P&gt;VizlibWritebackTable:&lt;/P&gt;
&lt;P&gt;REPLACE LOAD&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;From "lib://Milestone_Test.qvd" (qvd, utf8);&lt;/P&gt;
&lt;P&gt;ELSE&lt;/P&gt;
&lt;P&gt;VizlibWritebackTable:&lt;/P&gt;
&lt;P&gt;REPLACE LOAD&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;'Ranking','Rank','Priority','Milestone','Milestone_count'&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vScriptErrorDetails = ScriptErrorDetails;&lt;/P&gt;
&lt;P&gt;IF vScriptErrorDetails &amp;lt;&amp;gt; Null() THEN&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;
&lt;P&gt;END IF;&lt;/P&gt;
&lt;P&gt;END IF&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Partital Reload:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;NewMilestones_QVD:&lt;/P&gt;
&lt;P&gt;add only Load distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Milestone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rank,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ranking,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Ranking = Priority, Priority, Ranking) as Priority&lt;/P&gt;
&lt;P&gt;FROM [lib://Milestone_Test.qvd](qvd);&lt;/P&gt;
&lt;P&gt;//without this IF, the STORE will return error on partial reloads&lt;/P&gt;
&lt;P&gt;IF IsPartialReload() THEN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Store NewMilestones_QVD into [lib://Milestone_Test.qvd](qvd);&lt;/P&gt;
&lt;P&gt;ENDIF;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Button-to-Execute-Partial-Reload/m-p/2091225#M89451</guid>
      <dc:creator>Asuod_</dc:creator>
      <dc:date>2023-07-06T17:08:32Z</dc:date>
    </item>
  </channel>
</rss>

