Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
mahamedfaijan
Creator II
Creator II

Binary load with realtive path of another qvw

Hi All,

 

I have created two apps:

A_DataModel.qvw

B_Dashboard.qvw

 

I want to take binary load of A_DataModel.qvw into B_Dashboard.qvw but I want to use relative path in variable instead of writing hardcode path.

Expectation - 

 

BINARY $(vVarQvwPath)A_DataModel.qvw

SET vVarQvwPath = ' C:\MyDrive\Dashboards\'

 

But code is not working, please help asap.

Labels (1)
  • appli

1 Solution

Accepted Solutions
Bill_Britt
Support
Support

Hi,

 

Binary Load has to be the first line of the script. So, you can't use the Set statement.

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...

Bill

Bill - Designated 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.

View solution in original post

3 Replies
Bill_Britt
Support
Support

Hi,

 

Binary Load has to be the first line of the script. So, you can't use the Set statement.

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...

Bill

Bill - Designated 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.

View solution in original post

mahamedfaijan
Creator II
Creator II
Author

So what if I want to put folder path as relative not absolute in my binary load?

How I should write ??

Brett_Bleess
Support (Former)
Support (Former)

The answer is in the link Bill provided, please be sure you review that, there is an example there.

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...

Here is a link to a Microsoft post regarding different path types as well:

https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.