<?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 Update single value from script without copying table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-single-value-from-script-without-copying-table/m-p/2017736#M1221967</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I want to decrease the value on a specific row of a table while I'm looping another table.&lt;BR /&gt;I have a large list of people and I have to do calculations on each person, but for simplicity lets look at a very limited case:&lt;BR /&gt;&lt;BR /&gt;I want to loop over the PersonsTable and give them their favorite fruit untill either they are satisfied or stock runs out.&lt;BR /&gt;Now I assume I don't want to make a new copy of the fruits table and delete the old one for every person on the person list?&lt;/P&gt;
&lt;P&gt;Is there a simple way to say "Update row X of this Table to Y"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FruitTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;FruitType&lt;/TD&gt;
&lt;TD width="50%"&gt;Amount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Apple&lt;/TD&gt;
&lt;TD width="50%"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Pear&lt;/TD&gt;
&lt;TD width="50%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm currently looping through another table based on it's row number. The table is like this:&lt;BR /&gt;&lt;STRONG&gt;PersonsTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Person_ID&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;FavoriteFruit&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;DesiredAmount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;3109421&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Apple&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;9271581&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Pear&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;3051235&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Apple&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 02:19:37 GMT</pubDate>
    <dc:creator>Maz</dc:creator>
    <dc:date>2022-12-19T02:19:37Z</dc:date>
    <item>
      <title>Update single value from script without copying table?</title>
      <link>https://community.qlik.com/t5/QlikView/Update-single-value-from-script-without-copying-table/m-p/2017736#M1221967</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I want to decrease the value on a specific row of a table while I'm looping another table.&lt;BR /&gt;I have a large list of people and I have to do calculations on each person, but for simplicity lets look at a very limited case:&lt;BR /&gt;&lt;BR /&gt;I want to loop over the PersonsTable and give them their favorite fruit untill either they are satisfied or stock runs out.&lt;BR /&gt;Now I assume I don't want to make a new copy of the fruits table and delete the old one for every person on the person list?&lt;/P&gt;
&lt;P&gt;Is there a simple way to say "Update row X of this Table to Y"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FruitTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;FruitType&lt;/TD&gt;
&lt;TD width="50%"&gt;Amount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Apple&lt;/TD&gt;
&lt;TD width="50%"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Pear&lt;/TD&gt;
&lt;TD width="50%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm currently looping through another table based on it's row number. The table is like this:&lt;BR /&gt;&lt;STRONG&gt;PersonsTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Person_ID&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;FavoriteFruit&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;DesiredAmount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;3109421&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Apple&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;9271581&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Pear&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;3051235&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Apple&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 02:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-single-value-from-script-without-copying-table/m-p/2017736#M1221967</guid>
      <dc:creator>Maz</dc:creator>
      <dc:date>2022-12-19T02:19:37Z</dc:date>
    </item>
  </channel>
</rss>

