Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"?
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.
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.