Skip to Content
3
Sep 06 at 02:29 PM

SAC Analytical Application Script to Select all in Input Control

168 Views Last edit Sep 06 at 02:46 PM 2 rev

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