<?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 problem with macro/trigger/selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778988#M276099</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 have a button (myButton) with a action (select in field). It works fine.&lt;/P&gt;&lt;P&gt;I need to press this button at any selection in auto.&lt;/P&gt;&lt;P&gt;I created a new trigger in the "document event trigger" of type "OnAnySelection" that launches this macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set myButton = ActiveDocument.GetSheetObject("myButton") &lt;/P&gt;&lt;P&gt;MyButton.Press &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, w&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;hen I make&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;any selection, i have to make the selection TWICE!! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the first selection&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the sheet&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;does not update! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;why?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;help me please &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 09:59:29 GMT</pubDate>
    <dc:creator>fabio</dc:creator>
    <dc:date>2015-01-13T09:59:29Z</dc:date>
    <item>
      <title>problem with macro/trigger/selection</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778988#M276099</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 have a button (myButton) with a action (select in field). It works fine.&lt;/P&gt;&lt;P&gt;I need to press this button at any selection in auto.&lt;/P&gt;&lt;P&gt;I created a new trigger in the "document event trigger" of type "OnAnySelection" that launches this macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set myButton = ActiveDocument.GetSheetObject("myButton") &lt;/P&gt;&lt;P&gt;MyButton.Press &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, w&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;hen I make&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;any selection, i have to make the selection TWICE!! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the first selection&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the sheet&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;does not update! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;why?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;help me please &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 09:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778988#M276099</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2015-01-13T09:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with macro/trigger/selection</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778989#M276100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you sent your document or a small version reproducing the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 10:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778989#M276100</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-13T10:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with macro/trigger/selection</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778990#M276101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if attached is exactly what you are looking for, but it triggers macro on any selection in field "Auto".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 12:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778990#M276101</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-01-13T12:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with macro/trigger/selection</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778991#M276102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried to make selections in your application and immediatly Auto is selected to Honda (I didn't need to clik twice).&lt;/P&gt;&lt;P&gt;I also tried to set your trigger in the "document event trigger" of type "OnAnySelection" (as you said in your first post) and it works.&lt;/P&gt;&lt;P&gt;I use QV 11 SR1...&lt;/P&gt;&lt;P&gt;Anyway, I read that macros are not always "safe"... it can be that sometimes they don't work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 13:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-macro-trigger-selection/m-p/778991#M276102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T13:01:13Z</dc:date>
    </item>
  </channel>
</rss>

