<?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: How I can simulate one cursor inside other cursor in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625884#M230148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank U so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 17:01:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-26T17:01:37Z</dc:date>
    <item>
      <title>How I can simulate one cursor inside other cursor in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625882#M230146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to run one sql and with the result use like parameters to execute another sql inside qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could to do it by pl/sql but i'd like to do inside qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cursor iniciar is select name from table A&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cursor acionar(nameB&amp;nbsp; varchar2) is select salary tableB where name =nameB;&lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i in iniciar loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for j in acionar(i.nameB ) loop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert into c (salary) values (j.sal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end loop;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625882#M230146</guid>
      <dc:creator />
      <dc:date>2014-02-24T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How I can simulate one cursor inside other cursor in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625883#M230147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is just an idea as now I haven't an Oracle db to check it; adapt to your question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tableA:&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// replace inline load with select from Oracle&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// loop on rows of qlikview table (same as loop on Oracle outer table, first cursor)&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;for i = 1 to noofrows('tableA')&lt;/P&gt;&lt;P&gt;let vVar = fieldvalue('nameB',$(i));&lt;/P&gt;&lt;P&gt;&amp;nbsp; trace $(vVar);&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&lt;/P&gt;&lt;P&gt;&amp;nbsp; // read from Oracle inner table (cursor 2) filtering with row/colum of tableA&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&lt;/P&gt;&lt;P&gt;&amp;nbsp; tableB:&lt;/P&gt;&lt;P&gt;&amp;nbsp; load *;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL &lt;/P&gt;&lt;P&gt;&amp;nbsp; select salary from tableBOracle where name = '$(vVar)'; &lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to insert in Oracle I think you have to set open database in read/write (script editor, tab settings), ask your oracle dba to grant, make a package or function or proc, ......, etc, etc........&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/377045"&gt;Re: How to use PL/SQL package call in qlikivew script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but&lt;/STRONG&gt; I personally would not do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625883#M230147</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-24T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How I can simulate one cursor inside other cursor in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625884#M230148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank U so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-I-can-simulate-one-cursor-inside-other-cursor-in-qlikview/m-p/625884#M230148</guid>
      <dc:creator />
      <dc:date>2014-02-26T17:01:37Z</dc:date>
    </item>
  </channel>
</rss>

