<?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 Making selections in multiple fields at the same time using API? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076733#M18616</link>
    <description>&lt;P&gt;I have created an extension that allows my users to make selections in an app based on inputs into an Input-field, where they input a string like this: "Dim1:value1|value2|....|valueN;Dim2:value1|value2|....|valueN;....;DimN:value1|value2|....|valueN".&lt;/P&gt;
&lt;P&gt;I do this now by splitting the string and looping through each Dimension and values. And that works, but each selection is made one at a time and it can be a little slow if we have a large app and there are many selections to be made. I would rather have a functionality that makes these selections as a "batch", i.e. all at the same time like what happens when you apply a bookmark. One way I thought of doing this would be to create a bookmark with the selections, but it only seems like it is possible to create bookmarks with the current selections in the app..&lt;/P&gt;
&lt;P&gt;I spent a few hours now searching for a solution for this, but I'm not sure if it is possible at all. Does anyone know if there is any way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mikael_F&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 11:10:24 GMT</pubDate>
    <dc:creator>Mikael_F</dc:creator>
    <dc:date>2023-05-26T11:10:24Z</dc:date>
    <item>
      <title>Making selections in multiple fields at the same time using API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076733#M18616</link>
      <description>&lt;P&gt;I have created an extension that allows my users to make selections in an app based on inputs into an Input-field, where they input a string like this: "Dim1:value1|value2|....|valueN;Dim2:value1|value2|....|valueN;....;DimN:value1|value2|....|valueN".&lt;/P&gt;
&lt;P&gt;I do this now by splitting the string and looping through each Dimension and values. And that works, but each selection is made one at a time and it can be a little slow if we have a large app and there are many selections to be made. I would rather have a functionality that makes these selections as a "batch", i.e. all at the same time like what happens when you apply a bookmark. One way I thought of doing this would be to create a bookmark with the selections, but it only seems like it is possible to create bookmarks with the current selections in the app..&lt;/P&gt;
&lt;P&gt;I spent a few hours now searching for a solution for this, but I'm not sure if it is possible at all. Does anyone know if there is any way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mikael_F&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 11:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076733#M18616</guid>
      <dc:creator>Mikael_F</dc:creator>
      <dc:date>2023-05-26T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Making selections in multiple fields at the same time using API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076849#M18618</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/198605"&gt;@Mikael_F&lt;/a&gt;&lt;/SPAN&gt; there is no way of sending selections as batch, or to be more precise, there is no API methods for doing this. My suggestion is to use &lt;A href="https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/APIs/Content/Sense_ClientAPIs/BackendAPI/selectvalues-method.htm" target="_blank"&gt;selectValues &lt;/A&gt;method for each field-values. If you will not wait for the promise response from the method, your code will execute all the calls immidiateley.&lt;BR /&gt;Could you please describe better what you mean with "&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;but each selection is made one at a time and it can be a little slow" and share your code?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 14:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076849#M18618</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-05-26T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Making selections in multiple fields at the same time using API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076868#M18619</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;, thanks for your answer!&lt;/P&gt;
&lt;P&gt;As I suspected, there is no way for me to do what I want using the API. Thanks for letting me know, so that I can stop looking :).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding my code, I did actually wait for the promise response in my code. (I'm not a very good JavaScript developer - yet ;).)&amp;nbsp;&lt;SPAN&gt;When I re-wrote my code a bit, and removed the "await" keyword in front of the function call, the selections happened much faster! I have yet to try the extension in a big app, but if it's this method is this fast there as well then it will absolutely work :).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mikael_F&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 15:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Making-selections-in-multiple-fields-at-the-same-time-using-API/m-p/2076868#M18619</guid>
      <dc:creator>Mikael_F</dc:creator>
      <dc:date>2023-05-26T15:07:00Z</dc:date>
    </item>
  </channel>
</rss>

