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

Linking two date filters

NPH
Participant
0 Kudos
629

Hi,

I have 2 different date dimensions in my model and I need to filter them both together.

Is there a way I can affect one by script, perhaps writing the filter range to a variable? Or any other suggestions would be great

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

N1kh1l
Active Contributor

nathan.heath

If you want to select a value in First date input control and want the same selection to pass through to second date input control, You can explore the below API's

Will return the selected members of the first control. You can store this in variable.

InputControl_1.getInputControlDataSource().getActiveSelectedMembers();<br>

You can use the below API to set the selection in second input control. It takes parameter as string or array of strings. You can use the previous API to get the members.

InputControl_2.getInputControlDataSource().setSelectedMembers(member: string | string[] );

https://help.sap.com/doc/958d4c11261f42e992e8d01a4c0dde25/release/en-US/index.html#InputControlDataS...

What’s New in SAP Analytics Cloud Release 2023.07 | SAP Blogs

Hope this helps !!

Nikhil

Answers (0)