<?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: Select date using selectValues api in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092215#M4874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/213736"&gt;boonhaw.tan&lt;/A&gt;‌, did this solve the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 09:44:50 GMT</pubDate>
    <dc:creator>jasonmomoa</dc:creator>
    <dc:date>2018-02-13T09:44:50Z</dc:date>
    <item>
      <title>Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092210#M4869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a multiple html pages mashup but i having problem to preserve current selection between html pages.&lt;/P&gt;&lt;P&gt;Thus, i tried to using browser sessionstorage method to store current selection made in page A then retrieve the selection from sessionstorage in page B and using selectValues api to perform pre-select.&lt;/P&gt;&lt;P&gt;I able to selectValues() for interger and text but i having problem to use &lt;SPAN style="font-size: 13.3333px;"&gt;selectValues for selecting date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kindly advice how can select date using &lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;electValues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.field('customer_name').selectValues(["Peter"], true, true) -&amp;gt; working&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.field('year').selectValues([2014], true, true) -&amp;gt; working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.field('date').selectValues(['1/7/2013'], true, true) -&amp;gt; not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 12:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092210#M4869</guid>
      <dc:creator>boonhaw_tan</dc:creator>
      <dc:date>2016-04-11T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092211#M4870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/55130"&gt;akl&lt;/A&gt;‌ would need your help on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;selectValues for date.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092211#M4870</guid>
      <dc:creator>boonhaw_tan</dc:creator>
      <dc:date>2016-04-11T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092212#M4871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to make sure you use the same format as in your app. And remember the display format can be different than the data format on the field level. So look into your datamodel what format your using, and use the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use the date as a number when it passed. And make sure that the date field has no timestamp in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to be sure then format your date like: date(floor(datefield),"d/m/yyyy") as date then your code should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092212#M4871</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2017-01-05T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092213#M4872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/213736"&gt;boonhaw.tan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2122"&gt;seebach&lt;/A&gt;‌ is right, It looks like your field "date" has a numeric value, so you will probably have to pass an object with qIsNumeric: true and qNumber: _value_number_ (&lt;A href="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/EngineAPI/Content/Classes/FieldClass/Field-class-SelectValues-method.htm#FieldValue" title="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/EngineAPI/Content/Classes/FieldClass/Field-class-SelectValues-method.htm#FieldValue"&gt;SelectValues method ‒ Qlik Sense&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I recommend you to use in that specific case is selectMatch instead (&lt;A href="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/MashupAPI/Methods/selectMatch-method.htm" title="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/MashupAPI/Methods/selectMatch-method.htm"&gt;selectMatch method ‒ Qlik Sense&lt;/A&gt;), this method will automatically try to match the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding keeping current selections between mashup pages, you can find a good thread here: &lt;A href="https://community.qlik.com/message/1100526"&gt;Re: Keep current selection between mashup page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 17:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092213#M4872</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2017-01-08T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092214#M4873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/213736"&gt;boonhaw.tan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field API selectValues() method allows either string or numeric values in the array. However, for dates you must use the numeric value of the given date.&lt;SPAN style="font-size: 10pt;"&gt; Check how Qlik converts date values in the documentation &lt;/SPAN&gt;&lt;A href="http://http//help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm" style="font-size: 10pt;"&gt;here&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the equivalent call of&lt;/P&gt;&lt;P&gt;&amp;nbsp; app.field('date').selectMatch('01/07/2013');&lt;/P&gt;&lt;P&gt;would be&lt;/P&gt;&lt;P&gt;&amp;nbsp; app.field('date').selectValues([41281]);&lt;/P&gt;&lt;P&gt;in 'MM/DD/YYYY' format. You can check the numeric value using the Num(Date(my_date)) Qlik's function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you gotta do now is re-create the same conversion from Qlik to your Mashup qlikDateStringToNum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092214#M4873</guid>
      <dc:creator>jasonmomoa</dc:creator>
      <dc:date>2018-01-23T09:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092215#M4874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/213736"&gt;boonhaw.tan&lt;/A&gt;‌, did this solve the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1092215#M4874</guid>
      <dc:creator>jasonmomoa</dc:creator>
      <dc:date>2018-02-13T09:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1576604#M10458</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Is there a problem in using selectValues() for Alphanumeric values?&lt;/P&gt;&lt;P&gt;selectValues() seems to be working only for string values for me and not for Numerical ones.&lt;/P&gt;&lt;P&gt;Can you please provide some code snippet as in how the syntax would be for Alphanumeric/Numeric values?&lt;/P&gt;&lt;P&gt;Would be really appreciated. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2019 15:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1576604#M10458</guid>
      <dc:creator>dipankarm</dc:creator>
      <dc:date>2019-05-04T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1617880#M11186</link>
      <description>&lt;P&gt;selectValues will work as long as you convert numeric values to a number array&lt;/P&gt;&lt;P&gt;I haven't solved for date though.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$.each(selection.qSelectedFieldSelectionInfo, function(key,value){
	isNaN(value.qName) ? valArray.push(value.qName):valArray.push(Number(value.qName));
});
promiseArray.push(fld.selectValues( valArray, true, true ));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1617880#M11186</guid>
      <dc:creator>amit_ghaste</dc:creator>
      <dc:date>2019-08-28T19:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1619214#M11200</link>
      <description>&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;I think this might help you,&lt;/P&gt;&lt;P&gt;you can try using following code&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-smi"&gt;app&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en"&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;('fieldname').&lt;/SPAN&gt;&lt;SPAN class="pl-en"&gt;selectMatch&lt;/SPAN&gt;&lt;SPAN&gt;(match string);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="pl-smi"&gt;app&lt;/SPAN&gt;.&lt;SPAN class="pl-en"&gt;field&lt;/SPAN&gt;('fieldname').&lt;SPAN class="pl-en"&gt;selectPossible&lt;/SPAN&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prashant&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 10:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1619214#M11200</guid>
      <dc:creator>Prashant_Naik</dc:creator>
      <dc:date>2019-09-02T10:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1619640#M11208</link>
      <description>&lt;P&gt;Prashant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does selectPossible after calling selectMatch accomplish?&lt;/P&gt;&lt;P&gt;Though if there are multiple values we have to recurse through the selections to perform selectMatch -&amp;gt; I am hoping to find a way around that.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1619640#M11208</guid>
      <dc:creator>amit_ghaste</dc:creator>
      <dc:date>2019-09-03T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1744171#M13241</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;sorry that i revive this thread, but i have a question regarding the selectValue() situation with the number (qNum) of date entrys within a field.&lt;/P&gt;&lt;P&gt;I am trying to select a range of values starting from 30 days ago from today.&lt;/P&gt;&lt;P&gt;That is all not a problem but, my field has entrys with timestamps which resolves as a xxxxx.xxxxxxxxxx pattern in the qNum part of the field.&lt;/P&gt;&lt;P&gt;Now the actual question is, how do i select entrys if i dont know the part after the "."&lt;/P&gt;&lt;P&gt;but just know the part in front of it?&lt;/P&gt;&lt;P&gt;what i was trying to do was like this:&lt;/P&gt;&lt;P&gt;app.field("someDateField").selectValues([array[0],......,array[29]]);&lt;/P&gt;&lt;P&gt;to select the entrys with the past 30 days. Well as you might expect, it didnt work out.&lt;/P&gt;&lt;P&gt;Since there are more then just 30 entrys infact it might be more then 30 entrys per day.&lt;/P&gt;&lt;P&gt;Is there any soloution to this problem?&amp;nbsp; Like a selectRange variant or wildcard selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;MW&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 06:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1744171#M13241</guid>
      <dc:creator>MichelW</dc:creator>
      <dc:date>2020-09-16T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1772510#M13683</link>
      <description>&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;Hope you are well!&lt;/P&gt;&lt;P&gt;The link(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://http//help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;here&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt; you have provided seem to be broken . Could you please provide the same again?&lt;/P&gt;&lt;P&gt;I have same issue where I couldn't select the date format fields using SelectValues API. Please check this thread-&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/td-p/1772241" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/Issue-in-SelectValues-Field-API-when-the-field-is-Date-format/td-p/1772241&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 11:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1772510#M13683</guid>
      <dc:creator>kishore3k</dc:creator>
      <dc:date>2021-01-07T11:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select date using selectValues api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1925066#M16717</link>
      <description>&lt;P&gt;This should be added to the API docs!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 09:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Select-date-using-selectValues-api/m-p/1925066#M16717</guid>
      <dc:creator>addhyperlinkstopivottablenow</dc:creator>
      <dc:date>2022-05-02T09:40:47Z</dc:date>
    </item>
  </channel>
</rss>

