<?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: Retrieve primary key Id for each inserted row and use it in second table using tPostgressqlOut in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359879#M124584</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMKgAAO"&gt;@shivanand&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me try to explain again.&lt;/P&gt; 
&lt;P&gt;1. I'm inserting rows (more than 1) into Table A using a for loop in tJavaFlex. The values are inserting fine.&lt;/P&gt; 
&lt;P&gt;2. I want to take the PK id value of the rows inserted and insert into Table B.&lt;/P&gt; 
&lt;P&gt;3.&amp;nbsp;OnSubComponentOK, I'm able to retrieve the latest row value only, but not the two rows.&lt;/P&gt; 
&lt;P&gt;4.&amp;nbsp;If you see my diagram, on the component where I created OnSubComponentOK, I couldn't find Trigger option to create OnSubJobOK.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My basic problem is "How to take the id value inserted in the first table and use it in the second table?" using Postgres. I saw some options for MySql.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any insights?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 13:54:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-28T13:54:15Z</dc:date>
    <item>
      <title>Retrieve primary key Id for each inserted row and use it in second table using tPostgressqlOut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359877#M124582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have tried this multiple ways but failed to get it worked. I definitely need the experts help now. I will try to explain what I'm trying to do.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Parsing the text from PDF using tJavaFlex. The parsed text contains multiple rows of same table. Lets say Table A.&lt;/P&gt; 
&lt;P&gt;2. I need to take the inserted key value from Table A and insert into Table B.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is what I did.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Used tJavaFlex to parse PDF. And using For loop sending the values to tMap for inserting into Table A&lt;/P&gt; 
&lt;P&gt;2. OnComponentOK, retrieving the latest id value from Table A and passing it into Table B. With this, I'm not able to insert multiple rows originated in step 1 into Table B.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope I was able to explain my issue.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm attaching the diagram of my Job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please let me know the solution for this issue.&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>Thu, 28 Sep 2017 03:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359877#M124582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T03:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve primary key Id for each inserted row and use it in second table using tPostgressqlOut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359878#M124583</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my understanding on your issue.&lt;/P&gt;&lt;P&gt;You inserted rows into table A and then fetching one row from table A and inseting into table B but you are getting no value from query on table A.&lt;/P&gt;&lt;P&gt;OnComponentOK triggers subjob as soon as it finds that component is OK it doesn't wait to finish first JOB thats why you may not be getting values from Table A.&lt;/P&gt;&lt;P&gt;Connect thse subjobs using OnSubjobOK so that second job will start after first jobs completion and you will get values from table A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 10:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359878#M124583</guid>
      <dc:creator>shivanand</dc:creator>
      <dc:date>2017-09-28T10:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve primary key Id for each inserted row and use it in second table using tPostgressqlOut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359879#M124584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMKgAAO"&gt;@shivanand&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me try to explain again.&lt;/P&gt; 
&lt;P&gt;1. I'm inserting rows (more than 1) into Table A using a for loop in tJavaFlex. The values are inserting fine.&lt;/P&gt; 
&lt;P&gt;2. I want to take the PK id value of the rows inserted and insert into Table B.&lt;/P&gt; 
&lt;P&gt;3.&amp;nbsp;OnSubComponentOK, I'm able to retrieve the latest row value only, but not the two rows.&lt;/P&gt; 
&lt;P&gt;4.&amp;nbsp;If you see my diagram, on the component where I created OnSubComponentOK, I couldn't find Trigger option to create OnSubJobOK.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My basic problem is "How to take the id value inserted in the first table and use it in the second table?" using Postgres. I saw some options for MySql.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any insights?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-primary-key-Id-for-each-inserted-row-and-use-it-in/m-p/2359879#M124584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T13:54:15Z</dc:date>
    </item>
  </channel>
</rss>

