on 2025 May 12 10:13 AM
Hi SAC community,
Is it possible to set story filters based on input control selections in a prompt when opening the story?
If yes, can you please provide an example code?
Best regards,
Request clarification before answering.
Sure, something like this in the story prompt onButtonClick() event
console.log("StoryPopUp_1 - onButtonClick");
//Read Input Control Selection by User
var ipc1sel = InputControl_1.getInputControlDataSource().getActiveSelectedMembersWithUnbooked();
//Apply selection as Story Filter
var fds = Application.getFileDataSource("Ckili67ld2ovmu4rq3udd173n1u");
fds.setDimensionFilterWithHierarchy("Product",Alias.FlatHierarchy,ipc1sel);
//Close the Story Popup
this.close();
//Unpause the table (linked with script variable) to retrieve latest filtered data
tblplan.getDataSource().setRefreshPaused(PauseMode.Off);
//Enable Planning features (Data Entry)
tblplan.getPlanning().setEnabled(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi @Freddie, weird. works for me.
console.log("Page_1 - onInitialization");
tblplan = Table_1;
StoryPopup_1.open();
User | Count |
---|---|
33 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.