cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

[SAC] - How to set the Story filter's active members?

sv7en
Product and Topic Expert
Product and Topic Expert
0 Kudos
180

As far as I know, there is a method called `setDimensionFilterWithHierarchy` that can control the members of a story filter. However, the effect I want is that when we enter a SAC page, the number of members in a story filter remains unchanged, but the selected values change. It seems to me that this cannot be achieved through scripting. Does anyone have any ideas?

Example:
By default, all options in the story filter (Fiscal Year Period) are selected:
sv7en_0-1750142817727.png
When we enter a SAC page, the script can set it to look like the image below, with only 2009002 and 2010002 selected:

sv7en_1-1750143047232.png

The above is the result I hope to achieve.

However, I found that only the `setDimensionFilterWithHierarchy` method can control changes to the Story Filter, and the result of this change is as shown below. But this result is not what I want because the other members are missing:

sv7en_2-1750143126624.png

So my questions are:
1. Besides `setDimensionFilterWithHierarchy`, are there other methods to set the values of a story filter?
2. Is there any other way to achieve the effect I want?

 

Accepted Solutions (0)

Answers (2)

Answers (2)

rohitchouhan
Participant

The PageFilter component does not expose any API for retrieving selected members. To access selected values, consider using InputControl or FilterLine, which provide programmatic access to selected members.

William_Yu1
Product and Topic Expert
Product and Topic Expert
I would assume this is NOT possible at the moment with story filter. I would suggest if you have can use page filter( input control) instead, you can manually sync the selection between page filters cross pages with API.