on 09-06-2022 3:29 PM
Dear Experts,
In an analytical application, I am looking for a way to reset some filters to the selection "All". For now I'm working with Input Controls (if you know a work around using other objects like filter line, I take it! already tried)
What I've done for now is an ugly work around: during onInitialization of the Canvas, I save members of the Input Controls I want to reset later, in global variables (member info, arrays):
init_members_Dimension1 = IC_Dimension1.getInputControlDataSource().getActiveSelectedMembers(99999);
When I want to reset these fitlers, I feed these input controls the values in the global variables.
IC_Dimension1.getInputControlDataSource().setSelectedMembers(init_members_Dimension1);
I see two problems of this method:
1. After resetting, the Input controls do not show neat "(All)", but a huge list of members
2. This is pretty ugly
Do you have any idea how to solve this?
Thanks a lot!
Stéphane
One thing you can do,
You can create an array with only interested members, and sort it. This is to keep the values neat and in order.
And then you can just pass this array when you want to reset the filter of the Input Control.
Regards,
Argha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.