<?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: Assign Value to context in tjava based on If else condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213466#M10707</link>
    <description>one more help please,
&lt;BR /&gt;
&lt;BR /&gt;how can i assign value of each itteration into a different context.
&lt;BR /&gt;
&lt;BR /&gt;context.test=((String)globalMap.get("row5.ValidationQuery1"));
&lt;BR /&gt;System.out.println(context.test);
&lt;BR /&gt;
&lt;BR /&gt;But it is printing all values in same field,
&lt;BR /&gt;i want to store each itteration result in different context.
&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 25 Feb 2020 11:45:07 GMT</pubDate>
    <dc:creator>sbxr</dc:creator>
    <dc:date>2020-02-25T11:45:07Z</dc:date>
    <item>
      <title>Assign Value to context in tjava based on If else condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213464#M10705</link>
      <description>&lt;P&gt;hi ,&lt;/P&gt; 
&lt;P&gt;FYI&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG" target="_blank"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC" target="_blank"&gt;@xdshi&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS" target="_blank"&gt;@shong&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to assign values to the context based on if else condition in Tjava,please reffer the image attached.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;context.counts==0;&lt;/P&gt; 
&lt;P&gt;then&lt;/P&gt; 
&lt;P&gt;context.status=="Pass"&lt;/P&gt; 
&lt;P&gt;else:&lt;/P&gt; 
&lt;P&gt;context.counts!=0;&lt;/P&gt; 
&lt;P&gt;context.status=="Fail"&lt;/P&gt; 
&lt;P&gt;Please help me with this,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213464#M10705</guid>
      <dc:creator>sbxr</dc:creator>
      <dc:date>2024-11-16T03:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Value to context in tjava based on If else condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213465#M10706</link>
      <description>try this code:
&lt;BR /&gt;if(context.counts==0){
&lt;BR /&gt;context.status="Pass";
&lt;BR /&gt;}else{
&lt;BR /&gt;context.status="Fail";
&lt;BR /&gt;}
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 25 Feb 2020 09:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213465#M10706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-25T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Value to context in tjava based on If else condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213466#M10707</link>
      <description>one more help please,
&lt;BR /&gt;
&lt;BR /&gt;how can i assign value of each itteration into a different context.
&lt;BR /&gt;
&lt;BR /&gt;context.test=((String)globalMap.get("row5.ValidationQuery1"));
&lt;BR /&gt;System.out.println(context.test);
&lt;BR /&gt;
&lt;BR /&gt;But it is printing all values in same field,
&lt;BR /&gt;i want to store each itteration result in different context.
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 25 Feb 2020 11:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-Value-to-context-in-tjava-based-on-If-else-condition/m-p/2213466#M10707</guid>
      <dc:creator>sbxr</dc:creator>
      <dc:date>2020-02-25T11:45:07Z</dc:date>
    </item>
  </channel>
</rss>

