on 01-03-2020 2:10 PM
Hello SAC Experts,
1) Is it possible to set values to the global variables which are available in the model definition in application event handling?
2) Is it possible to get the details of selected record of a table including calculated measure values which are added in the table itself?
3) Can we able to modify/manipulate table measures data in analytical application which are defined in model without taking additional calculated measures?
Somebody can help me out above queries.
Thanks in advance,
Bhargava
Yes, you can access the variable value with new setVariable API. However, if you are on QRC cycle, you would see this API only in 2020 Q1 update. It was release in 2019.22 wave
https://www.sapanalytics.cloud/product_updates/release-2019-22/#_Smart_Insights_enhancements*
Table_1.getDataSource().setVariableValue("variable01", 20);
For the second case, you can have an invisible KPI with the measure on the application. Set the same filters as that of selection on the KPI tile. And use the value of the same to call your OData API. that should work.
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Regarding your second question in the post. You wanted to get the measure value for a selection context, I understand this can be done with ResultSet API (Q4 2019 QRC release).
Usages and Scenarios/Examples of ResultSet API (part 1, part 2, part 3, part 4 )
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ashutosh,
Can we set a different value for that variable in the analytical application?
In the below screen we have purchase cost slider If I change that value from 0 to 10 then I want to set that value to the variable.
is it possible? in the model, I am setting formulas to measures using with the variable so, I would like to change the value for that variable in the analytical application when the slider event triggered.
2. In my case, I want to send the values of the calculated columns of selected records to the server to update the DB through OData service when user changes are done.
Ex: see above screenshot, I have changed the purchase cost and pressed the updated button.
Thanks & Kind Regards,
Bhargava
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.