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: 
mchrenka
Contributor
Contributor

Is there such a thing as an App Extension

The below ia a "Visualization" extension I wrote to write a value from the window query string into a variable in an app but I can only use it as a chart - i.e. I have do drag the extension onto a sheet for it to work.

How can I use this "application wide" so it is always setting a variable on every sheet without needing to add a chart extension to a sheet?

define( [

        'qlik','jquery'

    ],

    function ( qlik ) {

 

        var app = qlik.currApp();        

        const queryString = window.location.search;

        const urlParams = new URLSearchParams(queryString);

        const company_id = urlParams.get('company_id');

         app.variable.setStringValue('vCompanyId' , company_id);

         return {

            paint: function ( $element, layout ) {

              $element.empty();

               //..                

            }

        };

    } );

Labels (1)
2 Replies
ajaykakkar93
Specialist III
Specialist III

Hi,

I haven't tried this out, but I think this cannot be done, ill still give it a try.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

alex_colombo
Employee
Employee

Hey @mchrenka you cannot do this wihtout putting your extension in every sheets. 
An alternative could be create a backend service which open your Qlik app and put the extensions in all the available sheets, automatically, using Engine APIs.