<?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/2206402#M6470</link>
    <description>Why don't you just delegate this operation to a routine ?</description>
    <pubDate>Fri, 01 Mar 2019 12:32:08 GMT</pubDate>
    <dc:creator>navds</dc:creator>
    <dc:date>2019-03-01T12:32:08Z</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/2206401#M6469</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 (yyyy-MM-dd) 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&lt;/P&gt; 
&lt;P&gt;TalendDate.addDate(Var.booking_datetime,Var.duration,"mm") &amp;nbsp;&amp;nbsp;&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:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206401#M6469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T19:41:42Z</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/2206402#M6470</link>
      <description>Why don't you just delegate this operation to a routine ?</description>
      <pubDate>Fri, 01 Mar 2019 12:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-or-Array-in-a-tmap/m-p/2206402#M6470</guid>
      <dc:creator>navds</dc:creator>
      <dc:date>2019-03-01T12:32:08Z</dc:date>
    </item>
  </channel>
</rss>

