Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik9:vbscript macro and data reload

Hi all,

i'm posting here my simple doc.

In this doc there are two vbscript subroutines, calling activeDocument 's getField method.

Reloading data opens "Edit Module" windows on this instruction call, like a breakpoint instance running.

Why does it happen?

Thanks in advance!

Roberta

2 Replies
stephencredmond
Partner - Specialist II
Partner - Specialist II

Hi Roberta,

It appears that the code that you want to run - clear the selection in a field - will not run because at that point the object it is trying to access cannot be accessed. I might call this a bug.

However, if you replace your macros with Actions then it will work fine. There appears to be no Action to clear a field (why???). If you select with the search string "**" and then have a second action to toggle select with the same search string of "**" then it has the effect of clearing the selection.

Stephen

Not applicable
Author

Hi Stephen,

your suggestion give me a valid alternative approach.

Waiting to discover why I cannot use custom macro, I'll use this solution.

Thanks!!