Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
What is your exact requirement?
You cannot use GetRegistryString(Or any other function) in a Binary statement.
That's a pity.
There is probably no way to get that evaluation in before the binary
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.
Maybe this is helpful: Re: BINARY command to be constructed dynamically.
- Marcus
That works but suffers from the limitation, that I cannot set the variable prior to the loading.
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.
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
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.
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