Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
carolinnolte
Contributor II
Contributor II

GetActiveSheetObjects returns ubound=-1 on ajax client

Hi,

i need a little help.

What I want to do: I have a table which should open another tab on click in the table.

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.  

My macro snippet:

   

objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects

if ok = true then

     'do my stuff

end if

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.

Somehow there is no active sheet object, ubound(objs) returns -1

Any ideas how to solve my problem?

Thanks

for each obj in objs
     if obj.GetObjectId() = "Document\CH89" then
          ok = true
     end if
next

1 Reply
carolinnolte
Contributor II
Contributor II
Author

I found a workaround for my issue:

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.