Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

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
Former Employee
Former Employee

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

View solution in original post

3 Replies
Bill_Britt
Former Employee
Former Employee

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 - 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.
Mahamed_Qlik
Specialist
Specialist
Author

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

How I should write ??

Brett_Bleess
Former Employee
Former Employee

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.