QlikTip #43: Using Sub-Directories in QlikView Extensions

By default you are not able to access sub directories within your QlikView extension. But especially when developing more complex QlikView Extensions organizing your files in directory is really helpful (and necessary).

With a little trick you will be able to access sub directories:

Create your desired sub directory and create an empty Definition.xml file within that directory. I use the following content for that Definition.xml for all my extensions:

<?xml version="1.0" encoding="utf-8"?>
<ExtensionObject Type="object">

From then on you’ll be able to access the files within the newly created directory, doesn’t matter if we are dealing with a .js, .css or any other file type, e.g.:

Qva.LoadCSS(Qva.Remote + (Qva.Remote.indexOf('?') >= 0 ? '&' : '?') + 'public=only' + '&name=' + "Extensions/NameOfYourExtension/CSS/ExtensionStyle.css"); 

Tested with …

I have only tested this with QlikView 11 SR1 and SR2, not really sure if that also works in QlikView 10, but any feedback on compatibility with QlikView 10 is highly appreciated.

Bookmark and Share

and tagged . Bookmark the permalink. Both comments and trackbacks are currently closed.