cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Analytical Application Script to Select all in Input Control

stephlef
Participant

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

View Entire Topic
arghasen
Explorer
0 Kudos

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

stephlef
Participant
0 Kudos

Hello arghasen,

That's what I did, except that values are not sorted in the array.

Now let's try the new method in optimized design mode next week.

Regards,

Stéphane