Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
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
ErikWetterberg

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.

View solution in original post

1 Reply
ErikWetterberg

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.