cancel
Showing results for 
Search instead for 
Did you mean: 

How to setSelectedMembers for a range type date input control?

OzanCavusoglu
Explorer
0 Kudos
566

Hello,

when I have an input control on my date dimension "Datum" with "Filter by Member" like below...

... I can set it's selected member with this code.

InputControl_5.getInputControlDataSource().setSelectedMembers("[Date].[H1].&[2023-09-13]"); // Note that my date dimension is user-managed and I have a default hierarchy H1

My question is how do I do it with a "Filter by Range" option. Here is what I do:

In optimized design mode, I created an input control on Date Dimension and of type "Filter by Range". Note: date dimension is of type User-managed.

Then I select the type as Fixed, granularity as Day and entered example values 12.09.2023 and 30.11.2023.

My goal is to change these dates to let's say 12.10.2023 and 31.12.2023 in the run time.

Given that my members have following characteristics which code should I use to do this?

description: "12 (W37-09/Sep/2023)"
dimensionId: "Date"
displayId: "2023-09-12"
id: "[Date].[H1].&[2023-09-12]"

Thank you

Ozan Cavusoglu

Accepted Solutions (1)

Accepted Solutions (1)

N1kh1l
Active Contributor

ozancavusoglu

ozancavusogluThe InputControl_5.getInputControlDataSource().setSelectedMembers() currently does not support range type values.

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

Br.

Nikhil

Answers (1)

Answers (1)

JefB
Active Contributor

Please vote on below influence request where it is mentioned and maybe log a separate influence request:https://influence.sap.com/sap/ino/#/idea/286893