<?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 Filter rows with a context value - value is an expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2444391#M140540</link>
    <description>&lt;P&gt;Goal: build a data filter in context, and use the context value in a talend componant.&lt;/P&gt;
&lt;P&gt;I use a context to create a filter expression. The value of context is correctly builded&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I show the value&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System.out.println( " string : " + context.sSearchExpr );&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string : ( !( input_row.isIntern ) ) &amp;amp;&amp;amp; ( !( input_row.isExternalEmail )&lt;/P&gt;
&lt;P&gt;Now, how do use my context value in any talend componant( tFilterRow or tJavaRow)&lt;/P&gt;
&lt;P&gt;Help me&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 14:06:40 GMT</pubDate>
    <dc:creator>APIZZI1686753315</dc:creator>
    <dc:date>2024-04-24T14:06:40Z</dc:date>
    <item>
      <title>Filter rows with a context value - value is an expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2444391#M140540</link>
      <description>&lt;P&gt;Goal: build a data filter in context, and use the context value in a talend componant.&lt;/P&gt;
&lt;P&gt;I use a context to create a filter expression. The value of context is correctly builded&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I show the value&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System.out.println( " string : " + context.sSearchExpr );&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string : ( !( input_row.isIntern ) ) &amp;amp;&amp;amp; ( !( input_row.isExternalEmail )&lt;/P&gt;
&lt;P&gt;Now, how do use my context value in any talend componant( tFilterRow or tJavaRow)&lt;/P&gt;
&lt;P&gt;Help me&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2444391#M140540</guid>
      <dc:creator>APIZZI1686753315</dc:creator>
      <dc:date>2024-04-24T14:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows with a context value - value is an expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2444586#M140543</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;It will not work. the filter expression will be treated as a string, however, the filter expression field requires a boolean value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 03:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2444586#M140543</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-04-25T03:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows with a context value - value is an expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2448545#M140594</link>
      <description>&lt;P&gt;&lt;A id="link_11" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/257838" target="_self" aria-label="View Profile of Shicong_Hong" aria-describedby="userProfileCard-257838"&gt;&lt;SPAN class="login-bold"&gt;Shicong_Hong&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;is correct.&amp;nbsp; It will be treated as a string.&amp;nbsp; But, in java you can convert a string into a statement, execute it.&amp;nbsp; From the web:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-java"&gt;&lt;SPAN class="hljs-type"&gt;String&lt;/SPAN&gt; &lt;SPAN class="hljs-variable"&gt;javaCode&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"if (polishScreenHeight &amp;gt;= 200 &amp;amp;&amp;amp; polishScreenHeight &amp;lt;= 235 &amp;amp;&amp;amp; polishScreenWidth &amp;gt;= 220) { }"&lt;/SPAN&gt;;
&lt;SPAN class="hljs-comment"&gt;// Convert the Java String to a Java statement&lt;/SPAN&gt;
&lt;SPAN class="hljs-type"&gt;Statement&lt;/SPAN&gt; &lt;SPAN class="hljs-variable"&gt;statement&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt; &lt;SPAN class="hljs-title class_"&gt;Statement&lt;/SPAN&gt;(&lt;SPAN class="hljs-literal"&gt;null&lt;/SPAN&gt;, javaCode, &lt;SPAN class="hljs-literal"&gt;null&lt;/SPAN&gt;);
&lt;SPAN class="hljs-comment"&gt;// Execute the statement&lt;/SPAN&gt;
statement.execute();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2448545#M140594</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2024-05-03T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows with a context value - value is an expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2448562#M140595</link>
      <description>&lt;P&gt;Can you provide me more insight on the use case?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-with-a-context-value-value-is-an-expression/m-p/2448562#M140595</guid>
      <dc:creator>manojkvrajan</dc:creator>
      <dc:date>2024-05-03T14:19:58Z</dc:date>
    </item>
  </channel>
</rss>

