<?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: JSON or Array in a tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206493#M6533</link>
    <description>One of the way , assuming your lookup array is like 
&lt;BR /&gt;Mon,17:30 
&lt;BR /&gt;Tue,18:30 
&lt;BR /&gt;. 
&lt;BR /&gt;. 
&lt;BR /&gt;Sun 23:00 
&lt;BR /&gt; 
&lt;BR /&gt;Input — tjavarow( add another col with day of week of reservation datelike mon,tue ..it can be done by format date function EEE expression) — tmap (with lookup of closing time, inner join) — output ( if duration is -1 , read add lookup closing time otherwise duration to reservation date ) 
&lt;BR /&gt; 
&lt;BR /&gt;Hope this would be helpfull)</description>
    <pubDate>Thu, 28 Feb 2019 22:15:18 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-02-28T22:15:18Z</dc:date>
    <item>
      <title>JSON or Array in a tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206492#M6532</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a input file that contains a start time for a booking and a duration (xx minutes where xx is numeric).&amp;nbsp; I want to work out the end time for the booking based on these 2 parameters which is easy by using&amp;nbsp;addDate.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, the duration sometimes contains -1 which signifies a the booking runs until closing time for a restaurant.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a list of closing times for the venue by day of the week which are sometimes different and so instead of the addDate, where duration is -1 I then want to pull in the closing time and join that to the booking start time before converting to a date.&amp;nbsp; Again quite easy...&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",(StringHandling.LEFT(row4.booking_date,10) + " " + Var.closing_time))&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, I'd ideally like to be able to read lookup table containing a list of all closing times held in one column either as an array or a JSON string, then depending on the day of the week which I can work out, set the correct closing time for the venue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm currently doing a straight lookup to a table containing the closing times but have set one per venue.&amp;nbsp; Clearly a challenge but hopefully someone has a solution....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206492#M6532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T19:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSON or Array in a tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206493#M6533</link>
      <description>One of the way , assuming your lookup array is like 
&lt;BR /&gt;Mon,17:30 
&lt;BR /&gt;Tue,18:30 
&lt;BR /&gt;. 
&lt;BR /&gt;. 
&lt;BR /&gt;Sun 23:00 
&lt;BR /&gt; 
&lt;BR /&gt;Input — tjavarow( add another col with day of week of reservation datelike mon,tue ..it can be done by format date function EEE expression) — tmap (with lookup of closing time, inner join) — output ( if duration is -1 , read add lookup closing time otherwise duration to reservation date ) 
&lt;BR /&gt; 
&lt;BR /&gt;Hope this would be helpfull)</description>
      <pubDate>Thu, 28 Feb 2019 22:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206493#M6533</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-28T22:15:18Z</dc:date>
    </item>
  </channel>
</rss>

