<?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 Issue in SelectValues Field API when the field is Date format in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772241#M13679</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Just to provide you background - We have multiple qlik apps opened in our web application and when the user makes the selections in primary app - we apply the common selection across all the apps opened. &lt;FONT color="#993366"&gt;&lt;STRONG&gt;We have this strange issue with fields that are tagged as Date in the datamodel&lt;/STRONG&gt;&lt;/FONT&gt;. Please check below example.&lt;/P&gt;&lt;P&gt;Version : June 2020 Patch 7 v13.82.15&lt;/P&gt;&lt;P&gt;I have issue with selectValues Field API when the field is in Date format.&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Scenario 1 - Field : Month_Year is date datatype:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Let say, I have val array in which I have selected values of the date type field "Month_Year".&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; valArray[]= {&lt;BR /&gt;0:"Jan 2020"&lt;BR /&gt;1:"Feb 2020"&lt;BR /&gt;2:"Mar 2020"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Var&lt;/FONT&gt; FieldName = "Month_Year";&amp;nbsp; &lt;FONT color="#FF0000"&gt;// field in datamodel script :&amp;nbsp; Date#(Month_Year,'MMM YYYY') AS Month_Year&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808000"&gt;app&lt;/FONT&gt;.&lt;FONT color="#3366FF"&gt;Field&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;FieldName&lt;/FONT&gt; ).&lt;FONT color="#3366FF"&gt;selectValues&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;valArray&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;it is not selecting the value in desired "app" because the FieldName = Month_Year is derived as Date#(Month_Year,'MMM YYYY').&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Scenario 2 - Field : Month_Year is TEXT() string datatype:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Let say, I have val array in which I have selected values of the text/string type field "Month_Year".&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Var&lt;/FONT&gt; FieldName = "Month_Year";&amp;nbsp; &lt;FONT color="#FF0000"&gt;// field in datamodel script :&amp;nbsp; Text(Month_Year) AS Month_Year&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; valArray[]= {&lt;BR /&gt;0:"Jan 2020"&lt;BR /&gt;1:"Feb 2020"&lt;BR /&gt;2:"Mar 2020"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808000"&gt;app&lt;/FONT&gt;.&lt;FONT color="#3366FF"&gt;Field&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;FieldName&lt;/FONT&gt; ).&lt;FONT color="#3366FF"&gt;selectValues&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;valArray&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;Now the same field is making the selections in the field if we bring the field as text(Month_Year) as Month_Year.&lt;/P&gt;&lt;P&gt;did anyone faced this issue in your mash up application? do we have any solutions?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2019"&gt;@Bastien_Laugiero&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35546"&gt;@ToniKautto&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44118"&gt;@ian_wilson&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24514"&gt;@Patric_Nordstrom&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18172"&gt;@ChristofSchwarz&lt;/a&gt;&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:51:49 GMT</pubDate>
    <dc:creator>kishore3k</dc:creator>
    <dc:date>2024-11-16T00:51:49Z</dc:date>
    <item>
      <title>Issue in SelectValues Field API when the field is Date format</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772241#M13679</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Just to provide you background - We have multiple qlik apps opened in our web application and when the user makes the selections in primary app - we apply the common selection across all the apps opened. &lt;FONT color="#993366"&gt;&lt;STRONG&gt;We have this strange issue with fields that are tagged as Date in the datamodel&lt;/STRONG&gt;&lt;/FONT&gt;. Please check below example.&lt;/P&gt;&lt;P&gt;Version : June 2020 Patch 7 v13.82.15&lt;/P&gt;&lt;P&gt;I have issue with selectValues Field API when the field is in Date format.&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Scenario 1 - Field : Month_Year is date datatype:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Let say, I have val array in which I have selected values of the date type field "Month_Year".&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; valArray[]= {&lt;BR /&gt;0:"Jan 2020"&lt;BR /&gt;1:"Feb 2020"&lt;BR /&gt;2:"Mar 2020"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Var&lt;/FONT&gt; FieldName = "Month_Year";&amp;nbsp; &lt;FONT color="#FF0000"&gt;// field in datamodel script :&amp;nbsp; Date#(Month_Year,'MMM YYYY') AS Month_Year&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808000"&gt;app&lt;/FONT&gt;.&lt;FONT color="#3366FF"&gt;Field&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;FieldName&lt;/FONT&gt; ).&lt;FONT color="#3366FF"&gt;selectValues&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;valArray&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;it is not selecting the value in desired "app" because the FieldName = Month_Year is derived as Date#(Month_Year,'MMM YYYY').&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Scenario 2 - Field : Month_Year is TEXT() string datatype:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Let say, I have val array in which I have selected values of the text/string type field "Month_Year".&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Var&lt;/FONT&gt; FieldName = "Month_Year";&amp;nbsp; &lt;FONT color="#FF0000"&gt;// field in datamodel script :&amp;nbsp; Text(Month_Year) AS Month_Year&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; valArray[]= {&lt;BR /&gt;0:"Jan 2020"&lt;BR /&gt;1:"Feb 2020"&lt;BR /&gt;2:"Mar 2020"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808000"&gt;app&lt;/FONT&gt;.&lt;FONT color="#3366FF"&gt;Field&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;FieldName&lt;/FONT&gt; ).&lt;FONT color="#3366FF"&gt;selectValues&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;valArray&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;Now the same field is making the selections in the field if we bring the field as text(Month_Year) as Month_Year.&lt;/P&gt;&lt;P&gt;did anyone faced this issue in your mash up application? do we have any solutions?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2019"&gt;@Bastien_Laugiero&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35546"&gt;@ToniKautto&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44118"&gt;@ian_wilson&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24514"&gt;@Patric_Nordstrom&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18172"&gt;@ChristofSchwarz&lt;/a&gt;&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772241#M13679</guid>
      <dc:creator>kishore3k</dc:creator>
      <dc:date>2024-11-16T00:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SelectValues Field API when the field is Date format</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772500#M13681</link>
      <description>&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;Try to use selectMatch function instead of selectValues.&lt;/P&gt;&lt;P&gt;Might help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 11:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772500#M13681</guid>
      <dc:creator>Prashant_N</dc:creator>
      <dc:date>2021-01-07T11:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SelectValues Field API when the field is Date format</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772504#M13682</link>
      <description>&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;Thank for you suggestion!&lt;/P&gt;&lt;P&gt;I have checked it and didn't seem to work there as well. I will check this&amp;nbsp; again and keep you posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile have you worked on passing multiple values as array to selectMatch API ? If yes can you please post an example? My guess is that selectMatch we need to pass the array of selections different to the selectValues (My above code is working for single/multiselections except if the field is tagged as Date)&lt;/P&gt;&lt;P&gt;Also if you look into this thread - dynamic multi values seems like not possible.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/selectMatch-for-more-than-one-value/m-p/909825" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/selectMatch-for-more-than-one-value/m-p/909825&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 11:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772504#M13682</guid>
      <dc:creator>kishore3k</dc:creator>
      <dc:date>2021-01-07T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SelectValues Field API when the field is Date format</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772516#M13684</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Seems like select Values API will accept string/numeric and date is being converted to Number by default in Qlik.&lt;/P&gt;&lt;P&gt;We did a workaround to convert these fields as text and sorting them using another date field in the application.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 12:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/m-p/1772516#M13684</guid>
      <dc:creator>kishore3k</dc:creator>
      <dc:date>2021-01-07T12:03:03Z</dc:date>
    </item>
  </channel>
</rss>

