<?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: Trigger Run If Java Condition - How to code not contains in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295118#M67932</link>
    <description>&lt;P&gt;&lt;B&gt;Hi&amp;nbsp;&lt;/B&gt;&lt;A href="https://community.talend.com/s/profile/0053p000007LLRdAAO" alt="https://community.talend.com/s/profile/0053p000007LLRdAAO" target="_blank"&gt;&lt;B&gt;Edith&lt;/B&gt;&lt;/A&gt;&lt;B&gt;,&lt;/B&gt;&lt;/P&gt;&lt;P&gt;If you don't mind, could you share a snapshot of your job design which you are trying to achieve. It helps us to know the requirement.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 06:33:10 GMT</pubDate>
    <dc:creator>vikramk</dc:creator>
    <dc:date>2020-09-25T06:33:10Z</dc:date>
    <item>
      <title>Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295116#M67930</link>
      <description>&lt;P&gt;Hello I am using this code for Trigger Run If to determine if the file format is .csv to run a component.   ((String)globalMap.get("FileName")).contains(".csv")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I code for everything else?  Is there a java code to check if Not Contains .csv?  &lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 17:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295116#M67930</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-09-24T17:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295117#M67931</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;How does the file name come? Do you use a tFileList to iterate a folder? Can you please explain why you use the global available?&lt;/P&gt;&lt;P&gt;(String)globalMap.get("FileName")&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>Fri, 25 Sep 2020 03:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295117#M67931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-25T03:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295118#M67932</link>
      <description>&lt;P&gt;&lt;B&gt;Hi&amp;nbsp;&lt;/B&gt;&lt;A href="https://community.talend.com/s/profile/0053p000007LLRdAAO" alt="https://community.talend.com/s/profile/0053p000007LLRdAAO" target="_blank"&gt;&lt;B&gt;Edith&lt;/B&gt;&lt;/A&gt;&lt;B&gt;,&lt;/B&gt;&lt;/P&gt;&lt;P&gt;If you don't mind, could you share a snapshot of your job design which you are trying to achieve. It helps us to know the requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 06:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295118#M67932</guid>
      <dc:creator>vikramk</dc:creator>
      <dc:date>2020-09-25T06:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295119#M67933</link>
      <description>&lt;P&gt;Here's a screenshot of the job. In the beginning of the job, I'm iterating a temp table that includes the FileName to the tRestClient. The FileName has the file format of .csv or .xls.  If the FileName contains .csv, then it goes to tFileRowCount and prints the message in tJavaFlex.  If the FileName contains something else other than .csv, then I only want to print the message.      &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009pZryAAE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155693iB8C860992FE9587F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009pZryAAE.jpg" alt="0693p000009pZryAAE.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 16:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295119#M67933</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-09-25T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295120#M67934</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for sharing your job, it is clear now.  To get the current value of FileName column, the expression is:&lt;/P&gt;&lt;P&gt;(String)globalMap.get("rowN.FileName") &lt;/P&gt;&lt;P&gt;rowN is the row identifier such as row1 before tFlowToIterate&lt;/P&gt;&lt;P&gt;The java code to check if Not Contains .csv is:&lt;/P&gt;&lt;P&gt;!((String)globalMap.get("rowN.FileName")).contains(".csv")&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>Sat, 26 Sep 2020 03:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295120#M67934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-26T03:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295121#M67935</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;contains() returns a boolean type.&lt;/P&gt;&lt;P&gt;In you case, if the filename contains ".csv", the expression returns true.&lt;/P&gt;&lt;P&gt;If I understood you correctly, you want every other file than .csv, so all files, that do not contain ".csv"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply type:&lt;/P&gt;&lt;P&gt;!((String)globalMap.get("FileName")).contains(".csv")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the exclamation mark. It means "not".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295121#M67935</guid>
      <dc:creator>cadap</dc:creator>
      <dc:date>2020-09-30T20:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Run If Java Condition - How to code not contains</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295122#M67936</link>
      <description>&lt;P&gt;Thank you @Bernhard Gruber​ for your time and help! &lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 21:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-Run-If-Java-Condition-How-to-code-not-contains/m-p/2295122#M67936</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-10-08T21:29:47Z</dc:date>
    </item>
  </channel>
</rss>

