<?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: Get SQL script from a table field value with For and Next Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1615084#M445380</link>
    <description>&lt;P&gt;Thanks heaps Rubenmarin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 22:29:28 GMT</pubDate>
    <dc:creator>shyamcharan</dc:creator>
    <dc:date>2019-08-21T22:29:28Z</dc:date>
    <item>
      <title>Get SQL script from a table field value with For and Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1614576#M445349</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am trying to read sql scripts from an excel file which are placed in a field called 'LoadStatement'.&lt;/P&gt;&lt;P&gt;Using For and Next loop I am trying to get the Select statement from each one of the field&amp;nbsp; value (LoadStatement) against the tablenames of the ExtractList.xls to load the data from database. If not Select statement available it should default to&amp;nbsp;'SQL Select * from TableName' as defined in variables.&lt;/P&gt;&lt;P&gt;However, it only picks first Select statement and all others are defaulted to 'SQL Select * from TableName' statement defined in the For-Next loop.&lt;/P&gt;&lt;P&gt;I have attached all the files I am using to get this worked.&lt;/P&gt;&lt;P&gt;Could you please advise what I am missing.&lt;/P&gt;&lt;P&gt;Appreciate your help here. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 05:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1614576#M445349</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2019-08-21T05:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get SQL script from a table field value with For and Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1614742#M445353</link>
      <description>&lt;P&gt;Hi, with FieldValue you read the values from field, in example LoadStatementCheck only has values 1 and 0 (only 2 values, not 4 like excel rows). To load the table by rows you can try with Peek() and NoOfRows():&lt;/P&gt;&lt;P&gt;FOR i=&lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;NoOfRows&lt;/STRONG&gt;('ExtractList')-1 // Peek starts at 0&lt;/P&gt;&lt;P&gt;LET vQVDName = &lt;STRONG&gt;Peek&lt;/STRONG&gt;('QvdName',$(i),'ExtractList') ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 11:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1614742#M445353</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-08-21T11:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get SQL script from a table field value with For and Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1615084#M445380</link>
      <description>&lt;P&gt;Thanks heaps Rubenmarin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 22:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-SQL-script-from-a-table-field-value-with-For-and-Next-Loop/m-p/1615084#M445380</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2019-08-21T22:29:28Z</dc:date>
    </item>
  </channel>
</rss>

