<?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: Variable true if activated object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691571#M474263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and for second:&lt;/P&gt;&lt;P&gt;for which event i must connect Macro to check activated objects dynamically ? (in QV there're only Document,Field event and Variable event triggers.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 08:33:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-25T08:33:39Z</dc:date>
    <item>
      <title>Variable true if activated object</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691568#M474260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;During several days i'm working at task of getting dynamically info about activated objects in QV 11.&lt;/P&gt;&lt;P&gt;As audit logging files don't give us any info about opened object, my idea is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;. Create for each object one variable.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;. Set to this variable value 1 if object is active&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;. Set the trigger for that variable OnChange Value: run macro (which will write info about active object to some txt file) if value in variable is changed (1 - active object, 0 - not active object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Have anyone ideas how to implement step 2 (Set to this variable value 1 if object is active) ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, someone has other way to solve this task (too much people try to solve similar task , if you know...)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 06:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691568#M474260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-25T06:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable true if activated object</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691569#M474261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on these snippet from APIGuide.qvw (is in your qv install-folder):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rem ** minimize all active sheet objects on active sheet **&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;objs=s.GetSheetObjects&lt;/P&gt;&lt;P&gt;for i=lbound(objs) to ubound(objs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if objs(i).IsActive then objs(i).Minimize&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of minimize you could read the name, id, timestamp, user .... But I wouldn't create a variable for each object I would rather use one variable as logfile and append each new event as a new row. These variable could you write by closing the app or externally in a text-file. Then to scan each movement within the app is quite heavy but to write it immediately is more difficult - from performance point of view and if several users used the same app at the same time ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 08:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691569#M474261</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-25T08:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable true if activated object</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691570#M474262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I'm not strong in VBS script code. Could you give me some links with function which got &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;name, id, timestamp, user&lt;/SPAN&gt; and others?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 08:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691570#M474262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-25T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable true if activated object</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691571#M474263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and for second:&lt;/P&gt;&lt;P&gt;for which event i must connect Macro to check activated objects dynamically ? (in QV there're only Document,Field event and Variable event triggers.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 08:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691571#M474263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-25T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable true if activated object</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691572#M474264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All these things could you easily find within the APIGuide.qvw in the sheets "A... Members" and "A... Examples".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;set temp = ActiveDocument.GetApplication.GetProperties&lt;/P&gt;&lt;P&gt;msgbox(temp.UserName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ObjectID:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;rem ** get unique object ID for first object on sheet Main **&lt;/P&gt;&lt;P&gt;set s = ActiveDocument.Sheets("Main")&lt;/P&gt;&lt;P&gt;set so = s.SheetObjects(0)&lt;/P&gt;&lt;P&gt;id = so.GetObjectId&lt;/P&gt;&lt;P&gt;msgbox("ID = " &amp;amp; id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= now()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 08:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-true-if-activated-object/m-p/691572#M474264</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-25T08:40:08Z</dc:date>
    </item>
  </channel>
</rss>

