<?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 Talend 5.6.1 Data Services - tXMLMap and multi loops in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285701#M59323</link>
    <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;i've to create an XML file as a standard defined by Microsoft Dynamics AX 2012.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;to summarize the structure is:&lt;/P&gt; 
&lt;P&gt;&amp;lt;Header&amp;gt; .... &amp;lt;/Header&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;Body&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SalesOrders&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list of many orders&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SalesTable&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DocuRefHeader&amp;gt; ... &amp;lt;/DocuRefHeader&amp;gt; &amp;nbsp; &amp;nbsp;a set of unlimited of this tag may be present at the Header of Sale &amp;nbsp;Order (Lists of different notes represent by couple (type,text).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SalesLines&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list of lines in one order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LineDocu&amp;gt; ... &amp;lt;/LineDocu&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;a set of unlimited of this tag may be present on different lines (Lists of different notes represent by couple (type,text).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SalesLine&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SalesTable&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SalesOrders&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've 5&amp;nbsp;Excel files in entry, one for Header, one for DocuRefHeader attach on Header, one for lines, one for LineDocu attach on Lines (the 5th is for delivery adress, but not cause of problem).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've design my job like this&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-06-19_154627.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvXm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141731i9E7E61E21763837F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvXm.png" alt="0683p000009LvXm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tMap aggregate all datas with the good id (Sales Order ID or Sales Lines ID). So if for one Sales Order i've 3 DocuRef, i 'll have 3 lines in the output flow.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tXMLMap realize the mapping, with option "All in one" true and "create empty element" false&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tFileOutputXML write the document generated by tXMLMap as an XML file&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My problem: it's write only if i've one DocRefHeader or one LineDocu. &lt;U&gt;&lt;STRONG&gt;How could i've loop on this 2 parts ?&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've try to use the 2 excel &amp;nbsp;files with note as lookup of the tXMLMap without success&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've try to use tFileOutputMSXML but it's complex and create some others problems (some part of XML has an identification "entity" that must to be generate only if one other tag is not empy ...)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;thanks for your help, i'm searching since one week without success.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2017 14:54:53 GMT</pubDate>
    <dc:creator>pascal_dugousset</dc:creator>
    <dc:date>2017-06-19T14:54:53Z</dc:date>
    <item>
      <title>Talend 5.6.1 Data Services - tXMLMap and multi loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285701#M59323</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;i've to create an XML file as a standard defined by Microsoft Dynamics AX 2012.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;to summarize the structure is:&lt;/P&gt; 
&lt;P&gt;&amp;lt;Header&amp;gt; .... &amp;lt;/Header&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;Body&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SalesOrders&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list of many orders&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SalesTable&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DocuRefHeader&amp;gt; ... &amp;lt;/DocuRefHeader&amp;gt; &amp;nbsp; &amp;nbsp;a set of unlimited of this tag may be present at the Header of Sale &amp;nbsp;Order (Lists of different notes represent by couple (type,text).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SalesLines&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list of lines in one order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LineDocu&amp;gt; ... &amp;lt;/LineDocu&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;a set of unlimited of this tag may be present on different lines (Lists of different notes represent by couple (type,text).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SalesLine&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SalesTable&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SalesOrders&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've 5&amp;nbsp;Excel files in entry, one for Header, one for DocuRefHeader attach on Header, one for lines, one for LineDocu attach on Lines (the 5th is for delivery adress, but not cause of problem).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've design my job like this&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-06-19_154627.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvXm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141731i9E7E61E21763837F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvXm.png" alt="0683p000009LvXm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tMap aggregate all datas with the good id (Sales Order ID or Sales Lines ID). So if for one Sales Order i've 3 DocuRef, i 'll have 3 lines in the output flow.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tXMLMap realize the mapping, with option "All in one" true and "create empty element" false&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;the tFileOutputXML write the document generated by tXMLMap as an XML file&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My problem: it's write only if i've one DocRefHeader or one LineDocu. &lt;U&gt;&lt;STRONG&gt;How could i've loop on this 2 parts ?&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've try to use the 2 excel &amp;nbsp;files with note as lookup of the tXMLMap without success&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i've try to use tFileOutputMSXML but it's complex and create some others problems (some part of XML has an identification "entity" that must to be generate only if one other tag is not empy ...)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;thanks for your help, i'm searching since one week without success.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 14:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285701#M59323</guid>
      <dc:creator>pascal_dugousset</dc:creator>
      <dc:date>2017-06-19T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 5.6.1 Data Services - tXMLMap and multi loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285702#M59324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can set multi-level loop in tXMLMap. What does your component tXMLMap setting look like? Could you please show us your XML schema?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 10:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285702#M59324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 5.6.1 Data Services - tXMLMap and multi loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285703#M59325</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;as you could see in the screenshot, i want to implement the second loop in yellow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-06-22_085020.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvBw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130665i791108904D169DB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvBw.png" alt="0683p000009LvBw.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-5-6-1-Data-Services-tXMLMap-and-multi-loops/m-p/2285703#M59325</guid>
      <dc:creator>pascal_dugousset</dc:creator>
      <dc:date>2017-07-04T12:34:58Z</dc:date>
    </item>
  </channel>
</rss>

