<?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 Assign a value in a record to a variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assign-a-value-in-a-record-to-a-variable/m-p/2338016#M106300</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list that I have sorted with tSortRow and I am using tSampleRow to get the first record of the sorted list.&lt;/P&gt;&lt;P&gt;Is there a way I can assign one of the values of that record to a variable?&lt;/P&gt;&lt;P&gt;I want to use that value to filter records from another list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:58:41 GMT</pubDate>
    <dc:creator>RMotta2408</dc:creator>
    <dc:date>2024-11-15T21:58:41Z</dc:date>
    <item>
      <title>Assign a value in a record to a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-a-value-in-a-record-to-a-variable/m-p/2338016#M106300</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list that I have sorted with tSortRow and I am using tSampleRow to get the first record of the sorted list.&lt;/P&gt;&lt;P&gt;Is there a way I can assign one of the values of that record to a variable?&lt;/P&gt;&lt;P&gt;I want to use that value to filter records from another list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-a-value-in-a-record-to-a-variable/m-p/2338016#M106300</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-11-15T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value in a record to a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assign-a-value-in-a-record-to-a-variable/m-p/2338017#M106301</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can store the value to a global variable or context variable on tJavaRow for used later on other components. &lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;...tSampleRow--main--tJavaRow&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;context.varName=input_row.columnName;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;On other components, you can use the context variable directly.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 02:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assign-a-value-in-a-record-to-a-variable/m-p/2338017#M106301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-21T02:21:02Z</dc:date>
    </item>
  </channel>
</rss>

