<?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 to pass data to ta in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319816#M90019</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached the input records. In txml Map, I have created an output with the name of out_for_API. Below is the expected output data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;"location": "",&lt;BR /&gt;"event_time": "2019-07-04",&lt;BR /&gt;"extern_ref": "",&lt;BR /&gt;"quantity_list": [{&lt;BR /&gt;"gtin": "02417403362921",&lt;BR /&gt;"quantity": 1&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "02417401093926",&lt;BR /&gt;"quantity": 2&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "02417403266526",&lt;BR /&gt;"quantity": 5&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvhe"&gt;Input_flow_1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6W"&gt;Input_flow_2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6g"&gt;job.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6q"&gt;output_flow.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvgS"&gt;output_for_API.PNG&lt;/A&gt;</description>
    <pubDate>Fri, 05 Jul 2019 15:46:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-05T15:46:41Z</dc:date>
    <item>
      <title>How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319812#M90015</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to Talend and couldn't figure out the solution to my issue on the forum.&lt;/P&gt;
&lt;P&gt;I have a job which is something like:&lt;/P&gt;
&lt;P&gt;toracleInput -&amp;gt; txmlmap -&amp;gt; trestclient&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In txmlmap, I have generated an output in the form of JSON/XML which is attached below with the name of "output_for_API".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For now, its generating a consolidated file like :&lt;/P&gt;
&lt;P&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0102&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;366715&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;false&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0645&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;27330&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;2&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;true&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0128&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;27330&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;-1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;false&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0011&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;91552&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;0&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;true&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0645&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;483067&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;true&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I need a file per location to feed the API;Not a consolidated file&lt;/P&gt;
&lt;P&gt;something like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0102&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;366715&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;false&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions, how to split the output to get a file per location?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319812#M90015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319813#M90016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you are doing Iterate instead of row link from tOracleinput, you will get one record at a time in XML format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please be mindful of performance since you are processing one record at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 20:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319813#M90016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319814#M90017</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt; 
&lt;P&gt;But I think, I couldn't make my point clear. I have a job attached below. I am getting an output which is something like:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0102&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;615&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;false&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0102&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;2330&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;2&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;true&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0778&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;2730&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;-1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;false&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;StockUpdate&amp;gt;&amp;lt;locationDetail&amp;gt;&amp;lt;location&amp;gt;0102&amp;lt;/location&amp;gt;&amp;lt;event_time&amp;gt;2019-07-04&amp;lt;/event_time&amp;gt;&amp;lt;/locationDetail&amp;gt;&amp;lt;quantity_list&amp;gt;&amp;lt;gtin&amp;gt;9552&amp;lt;/gtin&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;exclude&amp;gt;true&amp;lt;/exclude&amp;gt;&amp;lt;/quantity_list&amp;gt;&amp;lt;/StockUpdate&amp;gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now, I have two issues. Firstly, for each location (e.g &amp;lt;location&amp;gt;0102 ) I need quantity_list to be an object which contains (gtin, quantity and exclude) as its members.&lt;/P&gt; 
&lt;P&gt;(one location should appear only once)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, the required format is:&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;&lt;EM&gt;{&lt;BR /&gt;"location": "",&lt;BR /&gt;"event_time": "2019-07-04T18:15:00+01:00",&lt;BR /&gt;"quantity_list": [{&lt;BR /&gt;"gtin": "615",&lt;BR /&gt;"quantity": 1&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "2330",&lt;BR /&gt;"quantity": 2&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "9552",&lt;BR /&gt;"quantity": 1&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/EM&gt;&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;2ndly, after getting output like above, how to send a file per store, not a consolidated file?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the attached job, output_for_API in txmlmap is going to the tfileoutputDelimited, but it's just for testing. In actual, data will be going to the API.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for any help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 11:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319814#M90017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319815#M90018</link>
      <description>&lt;P&gt;Ok. Please share 5 input records in exactly same way as in your input source.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also please share the expected output data exactly in the same way as in the output flow. Then I can give it a try to reverse engineer the flow using Talend Data Mapper or using JSON components of Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319815#M90018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T14:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319816#M90019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached the input records. In txml Map, I have created an output with the name of out_for_API. Below is the expected output data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;"location": "",&lt;BR /&gt;"event_time": "2019-07-04",&lt;BR /&gt;"extern_ref": "",&lt;BR /&gt;"quantity_list": [{&lt;BR /&gt;"gtin": "02417403362921",&lt;BR /&gt;"quantity": 1&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "02417401093926",&lt;BR /&gt;"quantity": 2&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"gtin": "02417403266526",&lt;BR /&gt;"quantity": 5&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvhe"&gt;Input_flow_1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6W"&gt;Input_flow_2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6g"&gt;job.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lw6q"&gt;output_flow.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvgS"&gt;output_for_API.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 05 Jul 2019 15:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319816#M90019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to ta</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319817#M90020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I please get the response for my query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be of great help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 10:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-ta/m-p/2319817#M90020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-08T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

