<?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: How to create arraylist or lookup table and use it in tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209620#M8367</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We will appreciate it a lot if you could elaborate your case with an example with input and expected output values.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 07:50:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-29T07:50:43Z</dc:date>
    <item>
      <title>How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209619#M8366</link>
      <description>&lt;P&gt;I have two xlsx file one is having Raw data and another one is lookup table or keywords. I written java code to match the string of raw data with keywords.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to create the arraylist of lookup table and use the arraylist in tJavaRow at the time of raw data processing. As i mentioned i have the string matching java code which is working fine just need to pass the two inputs one is arraylist and raw data row by row records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tJavaRow takes only one input.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209619#M8366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-22T15:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209620#M8367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We will appreciate it a lot if you could elaborate your case with an example with input and expected output values.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 07:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209620#M8367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209621#M8368</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure to understand quite well what you're trying to do, but, you could put your lookup your ArrayList in globalMap and use it inside the tJaravaRow.&lt;/P&gt;
&lt;P&gt;It will just just set a reference, and not the whole object, so you will retrieve the data every single row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you put a screen/job of what you are doing ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 09:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209621#M8368</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2019-08-29T09:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209622#M8369</link>
      <description>&lt;P&gt;rmartin,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For reference i would like showcase my job as, i am using &lt;SPAN&gt;tIntervalMatch or tFuzzyMatch.here insted of these logic i would like use my string match java code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="at marked area i want my java logic should be placed. either in tJavaRow or some other way" style="width: 613px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6oH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149507i090260F2E369BC5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6oH.png" alt="0683p000009M6oH.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;at marked area i want my java logic should be placed. either in tJavaRow or some other way&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I would like to use tJavaRow in the highlighted area, but tJavaRow takes only one input then how should i use the lookup table value. I can try&amp;nbsp;&amp;nbsp;globalMap but as day passes my lookup sheet also gets updated,&amp;nbsp;globalMap is going&amp;nbsp;to work with it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 09:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209622#M8369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T09:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209623#M8370</link>
      <description>&lt;P&gt;Here's the job :&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Job.jpg" style="width: 631px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6jd.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140916i22B0703DB783C28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6jd.jpg" alt="0683p000009M6jd.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;In the first tJavaRow, you build 2 things : your validator, which is a simple foreach Java code in a routine, and for each line, the matching rule.&lt;/P&gt; 
&lt;P&gt;The validator is holding all rules and is put in GlobalMap :&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="javarow1.jpg" style="width: 440px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6cn.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139603i6EA8484F0F19658D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6cn.jpg" alt="0683p000009M6cn.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then just have to apply it on each row of your Input XLSX :&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="javarow2.jpg" style="width: 541px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6oW.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142253i9D2FEF6914626845/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6oW.jpg" alt="0683p000009M6oW.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using this kind of things to create a "BusinessRule checker", which is what you're kinda trying to do here.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does it match what you're looking for ?&lt;/P&gt; 
&lt;P&gt;The Validator is made to check all rules and ask each rule : "is it valid ?".&lt;/P&gt; 
&lt;P&gt;So your "Java code" you already have goes to the "Matching rule" object.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 10:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209623#M8370</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2019-08-29T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209624#M8371</link>
      <description>&lt;P&gt;Hi rmartin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will implement your suggested way and let you know the result in 1 day.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 11:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209624#M8371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T11:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209625#M8372</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help, with your suggestions I am able to solve the problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am attaching the screenshots of my job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Screen 1- lookup sheet is red then created the HashMap and stored in globalMap.&lt;/P&gt; 
&lt;P&gt;Screen 2 - tJavaFlex_1 making HashMap.&lt;/P&gt; 
&lt;P&gt;then i read raw data pass through the tJavaRow_2 there my wild string matching algorithm is written. It's working as per my requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know if it can be done in better way.&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="soln1.PNG" style="width: 868px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6gJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129082i7457E2248CC7AD88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6gJ.png" alt="0683p000009M6gJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soln2.PNG" style="width: 945px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6rB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143856iB1C7D904B1B57D23/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6rB.png" alt="0683p000009M6rB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209625#M8372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create arraylist or lookup table and use it in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209626#M8373</link>
      <description>Quick suggestion : 
&lt;BR /&gt;Don't use tJavaFlex but TjavaRow : I think working with a separate tJava (where you put in global var your hashMap) in a previous stage is better, an then you only have to focus on dealing with your rows. You don't have to put back the HashMap in the globalMap (I think... normally) But it's only my opinion 
&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;Another one, this one, kina mandatory : don"t use "On componentOK" on your ending component but use "On Subjob ok", because if you have multiple file, you will start many times your "Master Data Template work", which you don't want to see happening. 
&lt;BR /&gt;If you want it to happen, don't use "OnComponentOk", but use a second step to the iteration process. It offers better control. 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-arraylist-or-lookup-table-and-use-it-in-tJavaRow/m-p/2209626#M8373</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2019-08-30T15:52:28Z</dc:date>
    </item>
  </channel>
</rss>

