Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Author

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

Brian_Munz
Employee
Employee

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.

Bill_Britt
Former Employee
Former Employee

Hi,

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

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
Not applicable
Author

Thanks that worked!

pablolabbe
Luminary Alumni
Luminary Alumni

Worked for me too.  using QV11.2 SR6.