Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

What is the meaning of the "public" parameter when requesting QvsViewClient.aspx?

When an extension needs to use a file from its directory it is required to use an URL of this kind:

/QvAjaxZfc/QvsViewClient.aspx?public=only&name=Extensions/MyExtension/MyFile.ext

The "name" parameter is obviously the path to the requested file, but what is the purpose and meaning of the "public=only" parameter? What are the other possible values of the "public" parameter and how do they affect the response from the server?

Are there other additional parameters than "name" and "public"?

1 Solution

Accepted Solutions
erik_wetterberg
Not applicable

What is the meaning of the "public" parameter when requesting QvsViewClient.aspx?

This is really internal stuff, the public=only part is used for loading static files (scripts, css files, images etc). There are no other possible values.

In QlikView 11 we have added a new method to simplify this:

  Qv.LoadExtensionScripts ( scripts, callback);

You call it something like this:

Qv.LoadExtensionScripts(['Extensions/StreamChart/raphael-1.3.2.min.js',

                                     'Extensions/StreamChart/streamchart.js'],

                                      function(){

                                               Qva.AddExtension('StreamChart', function() {

                                                   .....});

                                     });

It will automatically make the correct URL:s and load the scripts, and when all are loaded run the callback function. It also handles the situation when you are using QlikView Workbench and a proxy is used.

Erik Wetterberg
https://extendingqlik.upper88.com/
1 Reply
erik_wetterberg
Not applicable

What is the meaning of the "public" parameter when requesting QvsViewClient.aspx?

This is really internal stuff, the public=only part is used for loading static files (scripts, css files, images etc). There are no other possible values.

In QlikView 11 we have added a new method to simplify this:

  Qv.LoadExtensionScripts ( scripts, callback);

You call it something like this:

Qv.LoadExtensionScripts(['Extensions/StreamChart/raphael-1.3.2.min.js',

                                     'Extensions/StreamChart/streamchart.js'],

                                      function(){

                                               Qva.AddExtension('StreamChart', function() {

                                                   .....});

                                     });

It will automatically make the correct URL:s and load the scripts, and when all are loaded run the callback function. It also handles the situation when you are using QlikView Workbench and a proxy is used.

Erik Wetterberg
https://extendingqlik.upper88.com/