<?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: Add auto generate Data to postgreSQL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242726#M29453</link>
    <description>&lt;P&gt;Thanks your for fast answer,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;and it is possible with a routine, tLibraryLoad, tJavaRow and java postgreSQL code connection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I connect to the Database via postgreSQL driver and loop some Data to the Database. So I solved the Problem and use a ETL Tool with JAVA&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;regards Chris&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 11:52:18 GMT</pubDate>
    <dc:creator>BderPan</dc:creator>
    <dc:date>2018-09-04T11:52:18Z</dc:date>
    <item>
      <title>Add auto generate Data to postgreSQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242724#M29451</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I have a problem with data of a tFileInputDelimited.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;my Job looks like:&amp;nbsp;&lt;BR /&gt;tFileInputDelimited --&amp;gt;tJava--&amp;gt; tJavaRow_1--&amp;gt;tMap--&amp;gt;tDBOutput_2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The CSV file I read had seperate cloumns like column1, column2 etc&lt;BR /&gt;&lt;BR /&gt;I only need column1 and column2 , in column1 only a number like 12345 in column2 are numbers delimited by , --&amp;gt; 1234,5678 (the entry for that field is varaiable)&lt;BR /&gt;I write a script what split the column2, so I generate a incremtor for an ID in Database and set it to a primaryKey&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;//SplitingChild and connect to master for Table

String pzn = input_row.PZN;
String childPzns = input_row.CHILD_PZN;
String childPzn = "";
String childPZNout = "";

    	 //System.out.println("testout: " + test);
    	 if(childPzns != null &amp;amp;&amp;amp; !childPzns.isEmpty()){
    	 
    	 String[] splittChildPZNs = childPzns.split("\\,");
    	 
    		 for (String childPZN : splittChildPZNs) {
    		 		i++;
            		System.out.println("PZN:  "+ pzn +" --&amp;gt; ChildPzn --&amp;gt; " + childPZN + " --&amp;gt; ID: " + i);
            		globalMap.put("pzn", pzn);
            		globalMap.put("childPzn", childPZN);
            		globalMap.put("id", i);
            		
            		 
            	 }
             
    	 } else {
    	 			i++;
            	 	System.out.println("PZN:  "+ pzn + " --&amp;gt; ID: " + i);
            	 	globalMap.put("pzn", pzn);
            		globalMap.put("childPzn", "");
            		globalMap.put("id", i);
            	 	
    	}&lt;/PRE&gt; 
&lt;P&gt;if I use the globalMap vars in tMap&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job1.PNG" style="width: 612px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzff.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142613i0286E82F026AA684/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzff.png" alt="0683p000009Lzff.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;it only write the pzn, childpzn and id, for the number of line out of the tFileInput.&lt;BR /&gt;In my tLog it shows correct :&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;PZN: 01364773 --&amp;gt; ChildPzn --&amp;gt; 01364804 --&amp;gt; ID: 18224&lt;BR /&gt;PZN: 01364773 --&amp;gt; ChildPzn --&amp;gt; 01364796 --&amp;gt; ID: 18225&lt;BR /&gt;&lt;BR /&gt;It only writes the last input with the ID 18225 and the input with the ID 18224 was ignored.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for yout help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;best regards Chris&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242724#M29451</guid>
      <dc:creator>BderPan</dc:creator>
      <dc:date>2024-11-16T07:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add auto generate Data to postgreSQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242725#M29452</link>
      <description>your cannot use an etl as an java tool! 
&lt;BR /&gt;Talend data are in row not in globlaMap. 
&lt;BR /&gt;globalMap are to retrieve components data. 
&lt;BR /&gt;Context to set parameters to the job. 
&lt;BR /&gt; 
&lt;BR /&gt;in you case you want to normaliz data so you can use tNormalize. 
&lt;BR /&gt; 
&lt;BR /&gt;ones you have select tNormalize on Your Job Press F1 to have a sample. 
&lt;BR /&gt; 
&lt;BR /&gt;Good luck. 
&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2018 09:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242725#M29452</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-28T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add auto generate Data to postgreSQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242726#M29453</link>
      <description>&lt;P&gt;Thanks your for fast answer,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;and it is possible with a routine, tLibraryLoad, tJavaRow and java postgreSQL code connection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I connect to the Database via postgreSQL driver and loop some Data to the Database. So I solved the Problem and use a ETL Tool with JAVA&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;regards Chris&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-auto-generate-Data-to-postgreSQL/m-p/2242726#M29453</guid>
      <dc:creator>BderPan</dc:creator>
      <dc:date>2018-09-04T11:52:18Z</dc:date>
    </item>
  </channel>
</rss>

