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">
</ExtensionObject>

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.

4 Comments

  1. Lars Bayer
    Posted October 17, 2012 at 20:09 | Permalink

    We used that with v10 already – so I can approve the compatibility!

  2. Posted January 24, 2013 at 16:24 | Permalink

    Hi,

    is there a different way/path for document extensions? This only seems to work with objetct extensions!
    I have been doing some trial and error guessing the right path, but no sucess yet :-/

    Cheers,
    Fabiam

    • Posted January 29, 2013 at 10:59 | Permalink

      No, document extension work exactly the same way …
      Hold on a few days, I’ll soon publish a new document extension which will be available for everyone and where I have used this approach, too.

      Regards
      Stefan

One Trackback

  1. […] Using sub-directories in QlikView extensions […]