<?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: Performing an action to select something on a dual field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520374#M106415</link>
    <description>&lt;P&gt;Hi, what about "&lt;SPAN&gt;Select values matching search criteria" as action button? Try it instead of selecting value in field.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 11:14:07 GMT</pubDate>
    <dc:creator>Adam_Romanowski</dc:creator>
    <dc:date>2025-06-06T11:14:07Z</dc:date>
    <item>
      <title>Performing an action to select something on a dual field</title>
      <link>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520365#M106411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have to use custom sorting in a textfield (something like countries), so we use the dual function to define that sorting order in the loadscript&lt;/P&gt;&lt;P&gt;also see &lt;A href="https://community.qlik.com/t5/Member-Articles/How-to-use-Dual/ta-p/1477054" target="_self"&gt;how to use dual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've create a sample app to simulate this behaviour with an following inline-load and 3 buttons&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;LOAD TextField&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;, Dual(TextField,NumberField) as TextField_sorted&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;, NumberField;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TextField, NumberField&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E, 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;D, 3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;F, 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C, 6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;As you can see, the sorting works as expected based on numeric value in the table with "TextField_sorted"&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sheet and buttons.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181095iD8A2C2B6F70C89BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="sheet and buttons.png" alt="sheet and buttons.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if i want to define an action on a sheet (or with a button), to select the value C in "TextField_sorted", it will not work.&lt;/P&gt;&lt;P&gt;First button, selects on "TextField" with a string, second button selects on "TextField_sorted" with a string (and does nothing), third button selects on "TextField_sorted" with a numeric value (6) and selects C&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now the question&lt;/STRONG&gt;: if we want to select something based on a field, which is using custom sorting order with Dual, is there&amp;nbsp;&lt;STRONG&gt;ANY WAY&lt;/STRONG&gt; to make it work with the sorted field based on the String instead of the Numeric Value? (otherwise we'd have to duplicate the column to have it unsorted for selecting and sorted for display...)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520365#M106411</guid>
      <dc:creator>ChristopherBirnbaum</dc:creator>
      <dc:date>2025-06-06T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performing an action to select something on a dual field</title>
      <link>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520374#M106415</link>
      <description>&lt;P&gt;Hi, what about "&lt;SPAN&gt;Select values matching search criteria" as action button? Try it instead of selecting value in field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 11:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520374#M106415</guid>
      <dc:creator>Adam_Romanowski</dc:creator>
      <dc:date>2025-06-06T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performing an action to select something on a dual field</title>
      <link>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520387#M106417</link>
      <description>&lt;P&gt;Maybe you could skip the dual-stuff by using the load as a pre-load. Means loading the field-values with the appropriate order before loading your facts and dims and dropping this temporary table afterwards again. And then simply using the sort against the load-order.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 13:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520387#M106417</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-06-06T13:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performing an action to select something on a dual field</title>
      <link>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520715#M106450</link>
      <description>&lt;P&gt;thanks adam - this is what i was looking for!&lt;BR /&gt;the other option with a pre-load seems a little overkill and has to be maintained for each field, that requires a static sorting order&lt;/P&gt;&lt;P&gt;one more remark: if multiple values (e.g. 'C' and 'D') should be used, the syntax is different - took me a few minutes to figure it out and it's worthwile adding to the post for future reference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;='(C|D)'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 09:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Performing-an-action-to-select-something-on-a-dual-field/m-p/2520715#M106450</guid>
      <dc:creator>ChristopherBirnbaum</dc:creator>
      <dc:date>2025-06-10T09:58:36Z</dc:date>
    </item>
  </channel>
</rss>

