<?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: values from outside loop query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/values-from-outside-loop-query/m-p/2273024#M50131</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSON Path do not allow to refer by relative path,&lt;/P&gt;
&lt;P&gt;but you can parse JSON with XPath&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in this case:&lt;/P&gt;
&lt;P&gt;"/client_info/" - loop path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;columns XPath expression:&lt;/P&gt;
&lt;P&gt;"first_name"&lt;/P&gt;
&lt;P&gt;last_name"&lt;/P&gt;
&lt;P&gt;"../id"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but still not possible to have data from 2 different loops, you will need to extract data for each loop individually and join them after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards, Vlad&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 11:48:27 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2020-05-27T11:48:27Z</dc:date>
    <item>
      <title>values from outside loop query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/values-from-outside-loop-query/m-p/2273023#M50130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using open studio.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is it possible to include a value from outside the loop?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried several options like the full json path but then it grabs all the values and not the corresponding one.&lt;/P&gt; 
&lt;P&gt;Below is a simple example&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[{"id":1,"client_info":{"first_name":"first","last_name":"name","company":"company_name","address":"'streetname 1","city":"test_city","zipcode":"1234 AB","country":"1","email":"test@mail.com","phone":"0123456789"},"items":[{"id":1,"name":"test_name","taxes":[{"id":1}]}]}]&lt;/PRE&gt; 
&lt;P&gt;how would i get the corresponding value of id and taxes array id and use them while looping threw client_info.&lt;/P&gt; 
&lt;P&gt;When i use full jsonpath both id and taxes id are filled with all corresponding values in each loop.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hopefully someone can point me in the right direction.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/values-from-outside-loop-query/m-p/2273023#M50130</guid>
      <dc:creator>JeroenL</dc:creator>
      <dc:date>2024-11-16T02:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: values from outside loop query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/values-from-outside-loop-query/m-p/2273024#M50131</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSON Path do not allow to refer by relative path,&lt;/P&gt;
&lt;P&gt;but you can parse JSON with XPath&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in this case:&lt;/P&gt;
&lt;P&gt;"/client_info/" - loop path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;columns XPath expression:&lt;/P&gt;
&lt;P&gt;"first_name"&lt;/P&gt;
&lt;P&gt;last_name"&lt;/P&gt;
&lt;P&gt;"../id"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but still not possible to have data from 2 different loops, you will need to extract data for each loop individually and join them after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards, Vlad&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 11:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/values-from-outside-loop-query/m-p/2273024#M50131</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-05-27T11:48:27Z</dc:date>
    </item>
  </channel>
</rss>

