Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
chrweber
Creator
Creator

evaluate function during binary load

Hello,

I wish to do the following

Binary GetRegistryString('HKEY_CURRENT_USER\Environment','QVWLOCATION');

but I fail to get that function to evaluate.

Can you please help me?

Best Regards

10 Replies
techvarun
Specialist II
Specialist II

What is your exact requirement?

You cannot use GetRegistryString(Or any other function) in a Binary statement.

chrweber
Creator
Creator
Author

That's a pity.

There is probably no way to get that evaluation in before the binary

Colin-Albert

A binary load simply loads all data from one qvw into your application.

The only parameter you can specify for a binary load is the path & filename for the QVW. You cannot use script functions to determine the path for your binary load.

After the binary statement, which must be the first line of your script, you can then add other script commands.

Binary ‒ QlikView

marcus_sommer

Maybe this is helpful: Re: BINARY command to be constructed dynamically.

- Marcus

chrweber
Creator
Creator
Author

That works but suffers from the limitation, that I cannot set the variable prior to the loading.

slaheddinekeyru
Partner - Contributor III
Partner - Contributor III

I think that you have to set the variable in the qvw that is called by the Binary Load.

For example if you are loading the "test.qvw" file in Binary mode try to set your "GetRegistryString(Or any other function)" in the test.qvw file.

marcus_sommer

What is the use-case behind this question? That each user gets his own dataset? Maybe there are alternatives for it, for example by using Section Access.

- Marcus

chrweber
Creator
Creator
Author

The location of the .qvw ist machine dependent, querying that during load path would the elegant solution.

Setting variables during deployment is a little cumbersome.

marcus_sommer

Such a workflow is rather uncommon. Does this deploying of individual qvw's going on local storages or on a network-storage? What is the benefit against the more "classical" ways?

- Marcus