on 2015 Mar 09 3:57 PM
I have seen discussions on topics similar to this, but i am hoping to get the absolute behavior.
From the User Guide:
Sets query variable values in external key format, then executes the data source query again.
I am using 1.4 hosted on SAP BI, universe data source, HANA models
I used to set up to five variables and then use the DS.loadDataSource() method to load the query. But this was taking a while. I now only set variables if needed.
Then, I eliminated the LoadDataSource() call, but the data sources did not always load after the variables are set.
I saw in another post where Karol said that if you set multiple variables, the data will not not, until all variables are set. How does it know that all variables will be set? What if I only set one of the three variables that a data source depends on? If it cannot know all the variables are set, then will it load data for set variable set? Do I have to set all variables for it to automatically relaod, and if I do not set all of the variables, then do I have to explicitly call loadDataSource? When the BI version, there is no reloadDataSource() - actually there is, but it doesn't do anything.
So to sum it up:
Thanks.
I am hoping that this question can be answered:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My guess here is that the variable container would apply on a similar way also for UNX (Blog is for BICS):
in that case that would be:
1. No
2. Yes
3. It will refresh when one of the variables is set.
Best regards,
Victor
Thanks Victor.
So, as I understand it:
Please let me know if you agree to the above.
A refresh should be triggered automatically to all involved queries with the variable in common, on top of this, not involved queries are invalidated but not refreshed.
Also if you are not using a component, the data source will not be refreshed at that moment, but when you actually use it.
So when you Set a variable, the corresponding data source should reflect the data after the set variable.
All of this is the standard case on BW, there is a possibility though that things behave a little bit differently when using UNX.
Best regards,
Victor
Thanks.
If I have five queries, each with three variables.
I want to set all three variables, and then access data in only one of the queries.
Does this mean that all three queries will refresh after each setVariableExt call? For a total of 15 refreshes (3 for each of the five queries)?
Sometimes, after I call setVariableExt, I will access the data source, but it has not refreshed. I have to explicitly call loadDataSource and then access the data source. If the above is true, then how come i observe this behavior?
I am using a HANA data source through a universe on the BI Server. I am hoping that we can straighten this out, because it is very important. When populating a listbox, the filters on data sources are ignored (getDataMemberList) and we have to use variables.
I guess in this case, it is better to use distinct variable names in each query. This way, you can manage when they are to be refreshed.
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.