<?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 Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344906#M112499</link>
    <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 04:26:39 GMT</pubDate>
    <dc:creator>AV2022</dc:creator>
    <dc:date>2023-05-19T04:26:39Z</dc:date>
    <item>
      <title>How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344901#M112494</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to Iterate the values from my Input CSV file which i have used as my lookup file and is connected to tMap. My main source table is Access DB which is also connected to tMap. The final output from tMap is pushed into Oracle DB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot of my component connections&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsFmeAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149251iE808C332755B46F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsFmeAAE.png" alt="0695b00000hsFmeAAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to update the data in my Output table based on the values from the Lookup table. Please see the below screenshot which gives the correct output for One of the value from the lookup file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsFmoAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154785iA3EB7FF3A64369C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsFmoAAE.png" alt="0695b00000hsFmoAAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please find the screenshot of Lookup file too&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsFnDAAU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140447i342756C06C5683E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsFnDAAU.png" alt="0695b00000hsFnDAAU.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Iam able to update the value for &lt;B&gt;oppose &lt;/B&gt;which is &lt;B&gt;1750, &lt;/B&gt;similar way i need to iterate and write the values for the corresponding mappings into the output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to find a solution for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344901#M112494</guid>
      <dc:creator>AV2022</dc:creator>
      <dc:date>2024-11-15T21:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344902#M112495</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I don't have an overview of your source data and target data, you can try to use a tFlowToIterate component to iterate each row of tFileInputExcel, the job looks like:&lt;/P&gt;&lt;P&gt;tDBConnection&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tFileInputExcel--main(row1)--tFlowToIterate--tDBInput--main-tUnique--tJavaRow--out1--tDBOutput&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;on tJavaRow: define the output columns, eg:&lt;/P&gt;&lt;P&gt;output_row.Action_user=4;&lt;/P&gt;&lt;P&gt;if(input_row.OPOSICAO=="true"){&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE=(String)globalMap.get("row1.Column1);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE="false";&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;// other other output columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 03:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344902#M112495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T03:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344903#M112496</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always thanks for your quick help.&lt;/P&gt;&lt;P&gt;My source DB is Access DB and target DB is Oracle. Data from excel i am using as a lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the changes like you have mentioned, but when i run the job i am getting the output for Action_Type as &lt;B&gt;false &lt;/B&gt;only. Do i need to add tMap after tJavarow to get the desired out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsMapAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134357i284DAF2106234001/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsMapAAE.png" alt="0695b00000hsMapAAE.png" /&gt;&lt;/span&gt;My requirement is whenever the data from DB input columns OPASICO,RENOVAÇÕES, PEDIDO DE REGISTO,PEDIDO_DE_CONCESSÃO,PEDIDO DE RENOVAÇÃO are TRUE it should be replaced with the corresponding mapping values from the Excel look up. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsMauAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133517iF9159E52896814D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsMauAAE.png" alt="0695b00000hsMauAAE.png" /&gt;&lt;/span&gt;The DB output Column Action_Type should be updated with the values from IPAS_ACTION_TYPE column when the input condition is TRUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with this situation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 05:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344903#M112496</guid>
      <dc:creator>AV2022</dc:creator>
      <dc:date>2023-05-18T05:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344904#M112497</link>
      <description>&lt;P&gt;what is the data type of OPOSICAO column you defined on the schema?&lt;/P&gt;&lt;P&gt;if boolean type,  the code on tJavaRow &lt;/P&gt;&lt;P&gt;output_row.Action_user=4;&lt;/P&gt;&lt;P&gt;if(input_row.OPOSICAO==true){&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE=(String)globalMap.get("row1.Column1);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE="false";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if string type, the code on tJavaRow:&lt;/P&gt;&lt;P&gt;output_row.Action_user=4;&lt;/P&gt;&lt;P&gt;if(input_row.OPOSICAO.equals("true")){&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE=(String)globalMap.get("row1.Column1);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;output_row.ACTION_TYPE="false";&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I don't understand your requirement well, it is better if you could provide some example data to explain it. &lt;/P&gt;&lt;P&gt;Data in tDBInput&lt;/P&gt;&lt;P&gt;Data in Excel &lt;/P&gt;&lt;P&gt;Expected result on Oracle table. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344904#M112497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T08:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344905#M112498</link>
      <description>&lt;P&gt;Hello Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the screenshot of how i have done my connection.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsMzfAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151664i6A58C16DBF3A8430/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsMzfAAE.png" alt="0695b00000hsMzfAAE.png" /&gt;&lt;/span&gt;My tDBInput (Source is Access DB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Columns to be considered from tDBInput are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPOSICAO&lt;/P&gt;&lt;P&gt;RENOVACOES&lt;/P&gt;&lt;P&gt;PEDIDO_DE_REGISTO&lt;/P&gt;&lt;P&gt;PEDIDO DE CONCESSÃO&lt;/P&gt;&lt;P&gt;PEDIDO DE RENOVAÇÃO&lt;/P&gt;&lt;P&gt;This columns are all in Boolean type in source DB but i changed the Data type to string, since my output is Oracle DB which don't support boolean values, please see the below screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsMzLAAU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153431iD6476C2B59D6F8ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsMzLAAU.png" alt="0695b00000hsMzLAAU.png" /&gt;&lt;/span&gt;tFileInputExcel&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsMzpAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146073iDA1E771E093CC95F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsMzpAAE.png" alt="0695b00000hsMzpAAE.png" /&gt;&lt;/span&gt;Now i have connected both tDbinput and tfileinput excel into a tmap. My requirement is whenever the values for above mentioned 5 columns from the source DB are TRUE, the output should be updated with the values that are mapped in the tinput excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg: If OPOSICAO is &lt;B&gt;TRUE&lt;/B&gt; the output column that is &lt;B&gt;ACTION_TYPE&lt;/B&gt; should be updated with value &lt;B&gt;1750.  &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly for RENOVACOES and other columns too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Tmap screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsN1bAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150781i0537B716EA3C7BDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsN1bAAE.png" alt="0695b00000hsN1bAAE.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to update one record at a time with the expression &lt;/P&gt;&lt;P&gt;row2.OPOSICAO=="TRUE"?"1750":"FALSE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the data to be updated in a loop, Once the data is updated for OPOSICAO then next it should update for RENOVACOES  and like wise for the next columns too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; tDBOutput&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsN1lAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150311iBB8154C44C3B478B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsN1lAAE.png" alt="0695b00000hsN1lAAE.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understood we need to add java component also into my present job like you have mentioned previously.  Please let me know how i need to setup my connection as per my requirement and the Java code also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344905#M112498</guid>
      <dc:creator>AV2022</dc:creator>
      <dc:date>2023-05-18T08:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Iterate Values from Multiple columns in Excel and updating the values to DB columns based on expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344906#M112499</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 04:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Iterate-Values-from-Multiple-columns-in-Excel-and/m-p/2344906#M112499</guid>
      <dc:creator>AV2022</dc:creator>
      <dc:date>2023-05-19T04:26:39Z</dc:date>
    </item>
  </channel>
</rss>

