<?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 Create a button to set fields to selected values of other fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020594#M84271</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;I need to create a button that sets multiple fields to the selected values of multiple other filters.&lt;/P&gt;
&lt;P&gt;I created a test qvf as an example (see file attached):&lt;/P&gt;
&lt;P&gt;What this button should do is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Set “name” to the selected values of “ref_name”&lt;/LI&gt;
&lt;LI&gt;Set “number” to the selected values of “ref_number”&lt;/LI&gt;
&lt;LI&gt;Set “date” to the selected values of “ref_date”&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I figured out to create 3 buttons which work to my satisfaction (see buttons: “set name to ref_name”, “set number to ref_number”, “set date to ref_date”).&lt;/P&gt;
&lt;P&gt;However, I need to create one single button that performs all the 3 actions above, so you don't need to click on 3 different buttons. I tried to do this, but it doesn’t work (see button “set name to ref_name + set number to ref_number + set date to ref_date”).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_example_buttons.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97025iAFD068F1F25C5245/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_example_buttons.PNG" alt="Screenshot_example_buttons.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;
&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 14:20:18 GMT</pubDate>
    <dc:creator>kge01</dc:creator>
    <dc:date>2022-12-29T14:20:18Z</dc:date>
    <item>
      <title>Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020594#M84271</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;I need to create a button that sets multiple fields to the selected values of multiple other filters.&lt;/P&gt;
&lt;P&gt;I created a test qvf as an example (see file attached):&lt;/P&gt;
&lt;P&gt;What this button should do is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Set “name” to the selected values of “ref_name”&lt;/LI&gt;
&lt;LI&gt;Set “number” to the selected values of “ref_number”&lt;/LI&gt;
&lt;LI&gt;Set “date” to the selected values of “ref_date”&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I figured out to create 3 buttons which work to my satisfaction (see buttons: “set name to ref_name”, “set number to ref_number”, “set date to ref_date”).&lt;/P&gt;
&lt;P&gt;However, I need to create one single button that performs all the 3 actions above, so you don't need to click on 3 different buttons. I tried to do this, but it doesn’t work (see button “set name to ref_name + set number to ref_number + set date to ref_date”).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_example_buttons.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97025iAFD068F1F25C5245/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_example_buttons.PNG" alt="Screenshot_example_buttons.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;
&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 14:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020594#M84271</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2022-12-29T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020620#M84275</link>
      <description>&lt;P&gt;Is one button with multiple actions not better?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 13:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020620#M84275</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2022-12-29T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020624#M84276</link>
      <description>&lt;P&gt;Yes, that's what I'm trying to do. I created the button&amp;nbsp;&lt;SPAN&gt;“set name to ref_name + set number to ref_number + set date to ref_date” that includes all the 3 actions.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;But it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 13:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020624#M84276</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2022-12-29T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020633#M84277</link>
      <description>&lt;P&gt;Dear KGE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i dont know what you are trying to archieve.&amp;nbsp; Because you have to make selections to make a selection in a field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not seeing what you want to do.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 13:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020633#M84277</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2022-12-29T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020647#M84278</link>
      <description>&lt;P&gt;I need to do this, because our users need to compare results for different datasets. They want to choose filters for dataset1 and dataset2&amp;nbsp; and see how the results differ (by the way, I don't/can't use alternate states for that, because an extention I need doesn't support them)&lt;/P&gt;
&lt;P&gt;Very often the needed filters for dataset1 and dataset2 are very similar, the users only need to change 1 or 2 filters. Because of that they want a button to transfer the selections from dataset1 to dataset2 (so for dataset2 they can click on the button to transfer the selections for dataset1 to dataset2 and then only need to set the 1 or 2 filters for dataset2 that should be different from dataset1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 14:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2020647#M84278</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2022-12-29T14:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021658#M84336</link>
      <description>&lt;P&gt;Hi! Is there a possibility to create such button, or is it not possible with Qlik?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 10:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021658#M84336</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2023-01-04T10:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021791#M84352</link>
      <description>&lt;P&gt;Hi. If you just change the action from &lt;STRONG&gt;Select values in a field&lt;/STRONG&gt; to &lt;STRONG&gt;Select values matching search criteria&lt;/STRONG&gt;&amp;nbsp;for number and date (You already have it for name) the button in your testfile works.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021791#M84352</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-01-04T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021804#M84357</link>
      <description>&lt;P&gt;Thanks you very much, that was it!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2021804#M84357</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2023-01-04T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2030985#M84918</link>
      <description>&lt;P&gt;Thank you again for your help! I just stumbled across another issue...&lt;/P&gt;
&lt;P&gt;If the string in the field has quotations, the selections are not made.&lt;/P&gt;
&lt;P&gt;The formula seems not to be interpreted correctly. I tried replacing the double quotations with two double quotations (as an escape character), but that didn’t work either.&lt;/P&gt;
&lt;P&gt;Btw I'm facing the same issues if there are single quotes (at the beginning of) the string.&lt;/P&gt;
&lt;P&gt;Again, to show the issue, I added an example file.&lt;/P&gt;
&lt;P&gt;Do you have any ideas on how to solve this? Thank you!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kge01_0-1674840656316.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99029i8FF7F6AA393F6769/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kge01_0-1674840656316.png" alt="kge01_0-1674840656316.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Fri, 27 Jan 2023 17:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2030985#M84918</guid>
      <dc:creator>kge01</dc:creator>
      <dc:date>2023-01-27T17:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2031116#M84931</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am having a hard time figuring it out. Just FYI, these buttons are not in the form but the field I need to update is in the form.&lt;A href="https://takesurvey.onl/publix-survey-at-www-publixsurvey-com/" target="_blank" rel="noopener"&gt;publixsurvey-&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 09:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2031116#M84931</guid>
      <dc:creator>fedoti5061</dc:creator>
      <dc:date>2023-01-28T09:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a button to set fields to selected values of other fields</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2031366#M84945</link>
      <description>&lt;P&gt;Sorry, I don't think you can do this without first removing the " from you "Hello"&lt;/P&gt;
&lt;P&gt;To change the string to remove the double "" you move the replce() outside of the expression, like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=replace(&lt;/P&gt;
&lt;P&gt;'('&amp;amp;'"'&amp;amp; GetFieldSelections(ref_name,'"|"', GetSelectedCount(ref_name, True())) &amp;amp;'"'&amp;amp;')'&lt;/P&gt;
&lt;P&gt;,'""', '"' )&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_0-1675069034056.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99117i6DC5E6F7F98E65A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbhappysocks_0-1675069034056.png" alt="jbhappysocks_0-1675069034056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you do this the selection will not be correct as Qlik will try to Select &lt;EM&gt;Hello&lt;/EM&gt;, not &lt;EM&gt;"Hello"&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt you can get around this, but if anyone has an idea I would also love to see it.&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;</description>
      <pubDate>Mon, 30 Jan 2023 08:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-button-to-set-fields-to-selected-values-of-other-fields/m-p/2031366#M84945</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-01-30T08:58:23Z</dc:date>
    </item>
  </channel>
</rss>

