<?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 Dynamic field selection on trigger button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169070#M40005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but macros are so fun, but of course your solution is much better (i always forgets expression-made list boxes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 17:10:36 GMT</pubDate>
    <dc:creator>blaise</dc:creator>
    <dc:date>2010-03-04T17:10:36Z</dc:date>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169062#M39997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to write a macro, which selects by pushing a trigger button in the field "Customers" all customers with "sales &amp;gt; 10".&lt;BR /&gt;I know how to select via bookmark in a macro, but is it possible to do this dynamic?&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;corleone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169062#M39997</guid>
      <dc:creator />
      <dc:date>2010-03-04T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169063#M39998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customers field: Customer&lt;/P&gt;&lt;P&gt;Sales field: Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;sub Sel10SalesCustomer&lt;BR /&gt; ActiveDocument.ClearAll&lt;BR /&gt; set objCust = ActiveDocument.Fields("Customer")&lt;BR /&gt; set objSales = ActiveDocument.Fields("Sales")&lt;BR /&gt; objSales.Select "&amp;gt;10"&lt;BR /&gt; objCust.SelectPossible&lt;BR /&gt; objSales.Clear&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169063#M39998</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-04T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169064#M39999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx 4 answer! short question about this. for my app "sales" is not a field, it's an calculated number from 2 fields.....so objSales.Select "&amp;gt;10" will not work! any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169064#M39999</guid>
      <dc:creator />
      <dc:date>2010-03-04T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169065#M40000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;move the calculation to the script.&lt;/P&gt;&lt;P&gt;Cant really come up with an alternative solution. Maybee it can be solved by creating a straight table with customer and your sum calculation, when having the macro loop over the sum field and check if the sum if &amp;gt;10, then fetch the customer dim in the table and ToggleSelect the custom din value to the Customer field. This sounds like a horrible solution though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169065#M40000</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-04T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169066#M40001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok thx i will try!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169066#M40001</guid>
      <dc:creator />
      <dc:date>2010-03-04T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169067#M40002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a bit curious on the loop cell values in straight table, so I developed the code for it. My straight table has one dimension, "customer" and one expression. If your table has more dimensions and/or expressions you should change the colIter to match your table (for my example the colIter is 0 for the dimension and 1 for the expression, as seen in the table.GetCell() function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; sub Sel10SalesCustomer&lt;BR /&gt; ActiveDocument.ClearAll&lt;BR /&gt; set objCust = ActiveDocument.Fields("customer")&lt;BR /&gt; set table = ActiveDocument.GetSheetObject( "CH01" ) 'change to your ID&lt;BR /&gt; Customer = ""&lt;BR /&gt; cellCustCount = 1&lt;BR /&gt; for rowIter = 1 to table.GetRowCount-1&lt;BR /&gt; set cell = table.GetCell(rowIter,1)&lt;BR /&gt; if cell.Text &amp;gt; 10 then&lt;BR /&gt; set cellCust = table.GetCell(rowIter,0)&lt;BR /&gt; if CellCustCount = 1 then&lt;BR /&gt; Customer = cellCust.Text&lt;BR /&gt; cellCustCount = 2&lt;BR /&gt; else&lt;BR /&gt; Customer = Customer &amp;amp;"|"&amp;amp; cellCust.Text&lt;BR /&gt; end if&lt;BR /&gt; else&lt;BR /&gt; 'do nothing&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt; custString = split(Customer,"|")&lt;BR /&gt; for i= lbound(custString) to ubound(custString)&lt;BR /&gt; objCust.ToggleSelect custString(i)&lt;BR /&gt; next&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169067#M40002</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-04T16:58:49Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169068#M40003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You may try creating a button as new object and adding the built-in action (right click, "Properties" -&amp;gt; Actions tab) and "Select" -&amp;gt; "Select in Field" and use "&amp;gt; 10" (without quotes). I haven't tested that with more complex expressions but it works, and you need not to create a macro.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169068#M40003</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-03-04T17:01:45Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169069#M40004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm&lt;/P&gt;&lt;P&gt;just an idea&lt;/P&gt;&lt;P&gt;what if you make a listbox with this expression:&lt;/P&gt;&lt;P&gt;=aggr(sum( [Field_A] )+sum( [Field_B] ),[Customer])&lt;/P&gt;&lt;P&gt;then you could either have your user type &amp;gt;10 in the listbox's search,&lt;/P&gt;&lt;P&gt;or you could wrap the above expr inside an IF statement and make a basket of selections&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;IF ( aggr(sum( [Field_A] )+sum( [Field_B] ),[Customer]) &amp;gt; 10 , '&amp;gt; 10' , '&amp;lt; 10')&lt;/P&gt;&lt;P&gt;i think you can take it from here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to avoid macros when ever i can &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169069#M40004</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-04T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169070#M40005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but macros are so fun, but of course your solution is much better (i always forgets expression-made list boxes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169070#M40005</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2010-03-04T17:10:36Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169071#M40006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm yes somtimes they can be&lt;/P&gt;&lt;P&gt;but figuring out how to do things bypassing macros is even more fun &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought using a macro too at first but i tried using Evaluate method, which eventually led me to a macroless solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169071#M40006</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-04T17:17:44Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169072#M40007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok thx to all i'll try it when i have 9.0 on my machine......still working with 8.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 16:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169072#M40007</guid>
      <dc:creator />
      <dc:date>2010-03-08T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Dynamic field selection on trigger button</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169073#M40008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm&lt;/P&gt;&lt;P&gt;i see no problem using either mine or Blais's methods in 8.5&lt;/P&gt;&lt;P&gt;hack i think it will even work on version 7.&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 00:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-selection-on-trigger-button/m-p/169073#M40008</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-09T00:33:24Z</dc:date>
    </item>
  </channel>
</rss>

