<?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: Object creation in txmlmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Object-creation-in-txmlmap/m-p/2320779#M90886</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPh5AAG"&gt;@eman&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please do not create duplicate posts for the same query as it will only slow down the request. Since you have already one post as shown below, please stick to it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kahcCAA#M101053" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/How-to-pass-data-to-ta/m-p/166408#M101053&lt;/A&gt;&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:53:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-05T14:53:39Z</dc:date>
    <item>
      <title>Object creation in txmlmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Object-creation-in-txmlmap/m-p/2320778#M90885</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I am new to Talend and couldn't figure out the solution to my issue on the forum.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have a job attached below.&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;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,&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;I need a file per location to feed the API;Not a consolidated file.&lt;/SPAN&gt;&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;</description>
      <pubDate>Sat, 16 Nov 2024 05:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Object-creation-in-txmlmap/m-p/2320778#M90885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation in txmlmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Object-creation-in-txmlmap/m-p/2320779#M90886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPh5AAG"&gt;@eman&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please do not create duplicate posts for the same query as it will only slow down the request. Since you have already one post as shown below, please stick to it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kahcCAA#M101053" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/How-to-pass-data-to-ta/m-p/166408#M101053&lt;/A&gt;&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:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Object-creation-in-txmlmap/m-p/2320779#M90886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-05T14:53:39Z</dc:date>
    </item>
  </channel>
</rss>

