Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
rzenere_avvale
Partner - Specialist II
Partner - Specialist II

Variable created on document opening

Hi all,

I'm working with the maps and I currently have an issue.

When I open the document a new variable "_zoom_level" is created, even if there are no triggers on opening or macro or anything at all!

If I delete it, save and close the document (and I before closing I know the variable is not created yet) and then open it again... there it is, once again

Also the new variable hasn't a value, and crushes with the name of the field "_zoom_level"... so I can't see anything at all after opening the document!

Do you have any idea about why this happens and how to prevent it?

1 Solution

Accepted Solutions
rzenere_avvale
Partner - Specialist II
Partner - Specialist II
Author

Hi Sunny,

sorry for the late answer

I found the problem... I had an input box which was setting the variable "_zoom_level". I didn't remember creating the input box, and it was also "hiding itself" behind another element... In the end a lucky and easy solution, thanks for your help

View solution in original post

7 Replies
sunny_talwar

I know maps script create _zoom_level everytime you reload the application. Do you reload the application after you close it down and reopen it?

rzenere_avvale
Partner - Specialist II
Partner - Specialist II
Author

Hi Sunny, thanks for your reply

You are partially right, _zoom_level is created each time the application is reloaded... but it's a field! while I have a variable called exactly _zoom_level which I do not consciously set anywhere!

Anyway no, I don't reload the application when I reopen it and I do not have neither an "onopen" trigger to do it

sunny_talwar

I have this variable:

max_zoom_level = 17;

May be you have this as _zoom_level

rzenere_avvale
Partner - Specialist II
Partner - Specialist II
Author

Nope, I have the same variable max_zoom_level...

sunny_talwar

Can you share your calendar map script and also tell us what is the value what gets assigned to it after reload?

rzenere_avvale
Partner - Specialist II
Partner - Specialist II
Author

Hi Sunny,

sorry for the late answer

I found the problem... I had an input box which was setting the variable "_zoom_level". I didn't remember creating the input box, and it was also "hiding itself" behind another element... In the end a lucky and easy solution, thanks for your help

sunny_talwar

I am glad you were able to locate it. Hidden things tend to drive us crazy.