<?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: Context variable - loses everything after comma in the string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226314#M18252</link>
    <description>&lt;P&gt;Could you attach some screenshots of your implementation/data?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 20:41:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-29T20:41:14Z</dc:date>
    <item>
      <title>Context variable - loses everything after comma in the string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226313#M18251</link>
      <description>&lt;P&gt;I'm storing a string into a context variable for later retrieval and use on subsequent records.&amp;nbsp; So I have fileinput -&amp;gt; tMap (to extract this field) -&amp;gt; tJavaRow (context.myinfo = input_row.field1) --- to store the data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sometimes the data string will contain a comma.&amp;nbsp; If it contains a comma, when I retrieve the value context.myinfo and output it, I find that everything after the comma (and including the comma) has been removed.&lt;/P&gt; 
&lt;P&gt;So it the input is "NewCo&amp;nbsp;&amp;nbsp; Boston MA" --- everything works fine&lt;/P&gt; 
&lt;P&gt;But if the input is "Joe Eats, INC&amp;nbsp; Las Vegas NV" -- upon reading the context variable I get "Joe Eats".&lt;/P&gt; 
&lt;P&gt;I want the whole string, and its pretty surprising to not get it when all I'm doing is write it to a context and later read it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If this is a 'special character' that needs to be escaped --- what is the full list of special characters?&lt;/P&gt; 
&lt;P&gt;Would setGlobalVar get me around this, or would it have the same problem?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-29 at 1.44.51 PM.png" style="width: 993px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7y8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143629i41C4909774948898/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7y8.png" alt="0683p000009M7y8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-29 at 1.45.28 PM.png" style="width: 314px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7kW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146631iF008270EA8AE5F89/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7kW.png" alt="0683p000009M7kW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-29 at 1.45.47 PM.png" style="width: 655px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7yI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134224i3FF7BD31788A3C88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7yI.png" alt="0683p000009M7yI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJavaRow4 saves the current record for later use... see the Java code image&lt;/P&gt; 
&lt;P&gt;tMap16 picks up the "datarecord_prior" from the context.&lt;/P&gt; 
&lt;P&gt;This goofy file format splits a single record into two lines, so it is necessary to join line 1 to line 2, then 3 to 4, etc.&lt;/P&gt; 
&lt;P&gt;When the input line contains a comma, when that is saved / retrieved from the context variable everything from the comma onward is lost.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226313#M18251</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2019-10-29T20:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable - loses everything after comma in the string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226314#M18252</link>
      <description>&lt;P&gt;Could you attach some screenshots of your implementation/data?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226314#M18252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T20:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable - loses everything after comma in the string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226315#M18253</link>
      <description>Done</description>
      <pubDate>Tue, 29 Oct 2019 20:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226315#M18253</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2019-10-29T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable - loses everything after comma in the string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226316#M18254</link>
      <description>&lt;P&gt;You are using a tFileInputDelimited component to read this data in. Are you using a comma as a separator in that component? If so, that is your problem&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 21:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226316#M18254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T21:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable - loses everything after comma in the string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226317#M18255</link>
      <description>&lt;P&gt;oh, snap!&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 21:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-loses-everything-after-comma-in-the-string/m-p/2226317#M18255</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2019-10-29T21:27:22Z</dc:date>
    </item>
  </channel>
</rss>

