on 2023 Oct 05 1:26 PM
Hello dear community,
I would need your help/idees on my following issue:
I have four queries that are all restricted to a single CalMonth in the global filter via an user exit. The query is embedded in a SAC story. The requirement is, that the user can change the CalMonth.
My idea would have been to create another query with the current year and add it to the story with a DropDown box.
The problem that I face now is, how can I transfer the selected CalMonth from the DropDown to the queries?
I used the following coding in the DropDown:
var month = InputControl_1.getInputControlDataSource().getActiveSelectedMembers();
TILE_KPI_EBIT.getDataSource().setVariableValue("X_CALMONTH_05", month);
This fails because of an invalid argument because the system can not convert from “Array of MemberInfo” to “string…”
But I didn’t find any way of converting correctly.
Alternatively, is there a way of refreshing the Story via a button and open the prompt variable window? Editing the prompts does not really work as I can not select all datasources at once. Merging the variables in not really an option as this is not visible for the enduer.
Thanks in advance
Clemens Paumgartten
Hello Nikhil,
thanks a lot for your help, highly appreciated!
I had to do some slicing, as the month[0].displayID is delivering e.g. 06.2023 and the varible X_Calmonth_05 requests 202306. But now it is working fine.
BR Clemens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.