<?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: Save to parent and child table (foreign key) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260886#M41859</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW" target="_self"&gt;manodwhb&lt;/A&gt;&amp;nbsp;can you please give me some hint how to achieve this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;so letas say i have parsed xml with books and authors with tXMLMap component i have two outputs:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal1.PNG" style="width: 950px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma9B.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135620i01889C2D566B5DE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma9B.png" alt="0683p000009Ma9B.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma9G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153366iB77D39F4A140F808/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma9G.png" alt="0683p000009Ma9G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;out1-authors&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;out2-books&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;(please see attached pictures)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;how should i continue in flow after tXMLMap component? (how to store authors and books at the same time(books have author_id as FK))&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 07:38:16 GMT</pubDate>
    <dc:creator>michaelh1</dc:creator>
    <dc:date>2020-05-19T07:38:16Z</dc:date>
    <item>
      <title>Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260884#M41857</link>
      <description>&lt;P&gt;Hi i have following problem:&lt;/P&gt; 
&lt;P&gt;I am parsing XML document to store these data into to two tables Author and Book:&lt;/P&gt; 
&lt;P&gt;Parent table Author (it works fine) and at the same time persist into child table Book with attribute author_id (fk) from Author table.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma5e.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149815i8C40B361970C9247/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma5e.png" alt="0683p000009Ma5e.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Persistng author works fine so far (blue arrow show component that persist author), but how can i continue in persisitng books with author_id as foreign key, how can i get the ID of persisted author?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;P.S. I am using postgresql DB so tlastinsertedID doe not work for me.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260884#M41857</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2024-11-16T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260885#M41858</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LR9vAAG"&gt;@michaelh&lt;/A&gt;, Yes you do not have lastInsertid component for PostgreSQL, so you need to design two jobs one for author and another one for Book. while loading Book you need to join with the author to get&amp;nbsp;&lt;SPAN&gt;author_id&amp;nbsp; and insert into&amp;nbsp;Book table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260885#M41858</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-19T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260886#M41859</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW" target="_self"&gt;manodwhb&lt;/A&gt;&amp;nbsp;can you please give me some hint how to achieve this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;so letas say i have parsed xml with books and authors with tXMLMap component i have two outputs:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal1.PNG" style="width: 950px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma9B.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135620i01889C2D566B5DE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma9B.png" alt="0683p000009Ma9B.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma9G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153366iB77D39F4A140F808/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma9G.png" alt="0683p000009Ma9G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;out1-authors&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;out2-books&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;(please see attached pictures)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;how should i continue in flow after tXMLMap component? (how to store authors and books at the same time(books have author_id as FK))&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260886#M41859</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2020-05-19T07:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260887#M41860</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LR9vAAG"&gt;@michaelh&lt;/A&gt;, you need to separate two flows and read source file two separately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260887#M41860</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-19T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260888#M41861</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;so firstly i have to parse authors save the and then parse books and save them right?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but last thing is that i need this to be done in one transaction so is this pattern ok?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260888#M41861</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2020-05-19T07:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Save to parent and child table (foreign key)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260889#M41862</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LR9vAAG"&gt;@michaelh&lt;/A&gt;&amp;nbsp;, Yes create separate jobs.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 09:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Save-to-parent-and-child-table-foreign-key/m-p/2260889#M41862</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-19T09:24:36Z</dc:date>
    </item>
  </channel>
</rss>

