Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SVG Map disappearing on Tab Change

Hi,

I have 2 tabs on my dashboard with following set variable values:

Tab 1 - set variable vtest = 1100

    Tab 1.1 - sublink with set variable vtest = 1100

    Tab 1.2 - sublink with set varialble vtest = 1200

Tab 2 - set variable vtest = 2100

The SVG map is on Tab 1.1 and has show condition set to = vtest=1100. The map loads properly on switching between Tab 1.1 and Tab 1.2. However, when I switch to Tab 2 and back to Tab 1, the SVG map disappears. (Its there but wouldnt show up) I tried adding action on Tab 1 and Tab 1.1 to activate the SVG map object, but it didnt help.

Can someone help?

Thanks,

S

2 Replies
Not applicable
Author

I find a temporary workaround waiting a official fix of svgMap extension.

Find this code in script.js file in C:\Users\{user}\AppData\Local\QlikTech\QlikView\Extensions\Objects\svgMap :

        if (!window["ref" + r]) {

            window["ref" + r] = "no"

        }

        $(".qvtr-tabs li").click(function () {

            if ($(this).attr("class") != "selectedtab" && $(this).attr("id") == t) {

                window["ref" + r] = "yes"

            }

        });

and replace with:

        window["ref" + r] = "yes"

Both the client and the server.

Bye.

Anonymous
Not applicable
Author

Running fine now. Thanks!