<?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: GetActiveSheetObjects returns ubound=-1 on ajax client in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetActiveSheetObjects-returns-ubound-1-on-ajax-client/m-p/428170#M697328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a workaround for my issue:&lt;/P&gt;&lt;P&gt;I duplicated the monitored field and added the field event trigger to that field. My table uses the duplicated field as dimension. If I click the table the macro is executed. So I don't need to check which sheet object is currently active.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 09:26:37 GMT</pubDate>
    <dc:creator>carolinnolte</dc:creator>
    <dc:date>2013-03-13T09:26:37Z</dc:date>
    <item>
      <title>GetActiveSheetObjects returns ubound=-1 on ajax client</title>
      <link>https://community.qlik.com/t5/QlikView/GetActiveSheetObjects-returns-ubound-1-on-ajax-client/m-p/428169#M697327</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 need a little help.&lt;/P&gt;&lt;P&gt;What I want to do: I have a table which should open another tab on click in the table.&lt;/P&gt;&lt;P&gt;What I tryed: I used the document field event trigger to call a macro to do the stuff I need. In that macro I check if the click orginates from that table or from another sheet object (listbox, current selections), in that case nothing should be done.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;My macro snippet:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;if ok = true then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do my stuff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I publish that on the Server and it works fine when I use IE and the Plugin, but if I use another browser or IE with full browser version it does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Somehow there is no active sheet object, ubound(objs) returns -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Any ideas how to solve my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;for each obj in objs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if obj.GetObjectId() = "Document\CH89" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ok = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;next &lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 12:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetActiveSheetObjects-returns-ubound-1-on-ajax-client/m-p/428169#M697327</guid>
      <dc:creator>carolinnolte</dc:creator>
      <dc:date>2013-03-11T12:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: GetActiveSheetObjects returns ubound=-1 on ajax client</title>
      <link>https://community.qlik.com/t5/QlikView/GetActiveSheetObjects-returns-ubound-1-on-ajax-client/m-p/428170#M697328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a workaround for my issue:&lt;/P&gt;&lt;P&gt;I duplicated the monitored field and added the field event trigger to that field. My table uses the duplicated field as dimension. If I click the table the macro is executed. So I don't need to check which sheet object is currently active.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 09:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetActiveSheetObjects-returns-ubound-1-on-ajax-client/m-p/428170#M697328</guid>
      <dc:creator>carolinnolte</dc:creator>
      <dc:date>2013-03-13T09:26:37Z</dc:date>
    </item>
  </channel>
</rss>

