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

Why can't Qva.LoadScript load files from sub-folders?

I have created an extension Extensions/mytests/HelloWorld.

Now, when I organize my files into sub folders, Qva.LoadScript fails to load it.

In fact, it loads only things that are at the root like "Extensions/mytests/HelloWorld/myscript.js" and fails "Extensions/mytests/HelloWorld/scripts/myscript.js"

What am I doing wrong or is it just not supported? in this case, it will be impossible to have all files at the root.

var my_extension_path = Qva.Remote + "?public=only&name=Extensions/mytests/HelloWorld";

Qva.LoadScript(my_extension_path + "/myscript.js", my_app_done);    // SUCCEEDS

Qva.LoadScript(my_extension_path + "/scripts/myscript.js", my_app_done);    // FAILS

5 Replies
Not applicable

Re: Why can't Qva.LoadScript load files from sub-folders?

Hey I'm having the same issue.  Did you ever figure out why it fails?

Employee
Employee

Re: Why can't Qva.LoadScript load files from sub-folders?

So one of the weird things with extensions in QV is that when you add subfolders, you need to also add a Definition.xml file to each subfolder.  Super weird, I know, but that should do the trick.

Employee
Employee

Re: Why can't Qva.LoadScript load files from sub-folders?

Hi,

I would contact support with this issue. It has been put in as a bug.

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
Not applicable

Re: Why can't Qva.LoadScript load files from sub-folders?

Thanks that worked!

Luminary
Luminary

Re: Why can't Qva.LoadScript load files from sub-folders?

Worked for me too.  using QV11.2 SR6.