<?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 insert in multiple table in a loop in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/insert-in-multiple-table-in-a-loop/m-p/1235751#M24356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to write the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i &amp;lt;= TotalNoOfRecordinTable Loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i.recordType = 'T' then&lt;/P&gt;&lt;P&gt;insert into TTable values ('.............);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif i.recordType='C' then&lt;/P&gt;&lt;P&gt;insert into CTable values (.......);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I write this logic in Qlik View or QlikSense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Mar 2017 12:40:25 GMT</pubDate>
    <dc:creator>madnanansari</dc:creator>
    <dc:date>2017-03-18T12:40:25Z</dc:date>
    <item>
      <title>insert in multiple table in a loop</title>
      <link>https://community.qlik.com/t5/App-Development/insert-in-multiple-table-in-a-loop/m-p/1235751#M24356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to write the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i &amp;lt;= TotalNoOfRecordinTable Loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i.recordType = 'T' then&lt;/P&gt;&lt;P&gt;insert into TTable values ('.............);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif i.recordType='C' then&lt;/P&gt;&lt;P&gt;insert into CTable values (.......);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I write this logic in Qlik View or QlikSense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 12:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/insert-in-multiple-table-in-a-loop/m-p/1235751#M24356</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-03-18T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: insert in multiple table in a loop</title>
      <link>https://community.qlik.com/t5/App-Development/insert-in-multiple-table-in-a-loop/m-p/1235752#M24357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate on your requirements a little bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to assign specific values to multiple fields in each table?&lt;/P&gt;&lt;P&gt;Or it's just one specific field in each table needs to be updated based on the i.recordType?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second case you should be able to do it with setting variables in the for... next loop and assigning these variables to specific fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/insert-in-multiple-table-in-a-loop/m-p/1235752#M24357</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-03-22T21:26:00Z</dc:date>
    </item>
  </channel>
</rss>

