cancel
Showing results for 
Search instead for 
Did you mean: 

SAC scripting : How to get active selected members of Dimension Input Control via API in story 2.0

Insan28
Explorer
1,511

Hi All,

I am using a dimension input control in my application based on the selection I want to write further scripts based on the conditions I will add.

However, the challenge is SAC is not able to read selected members from Dimension Input control although it doesn't gives error but on running the story runs into error

Script : var x= Dimension_Inp_Control_name.getInputControlDataSource().getActiveSelectedMembers();

Error:

As a workaround I will have to instead use a radio button and set the filters on the respective widget via scripting.

But it is strange that a functionality which is standard is not enabled to work like any other input control.

Does anyone have a better workaround ??

Thanks in advance

View Entire Topic
N1kh1l
Active Contributor
0 Kudos

desan28

desan28The Inputcontrol.getInputControlDataSource().getActiveSelectedMembers(); is not supported for all Input controls. As a workaround, may be you could get the dimension control to affect a table (hidden) and may be read the table resultset to use it further.


Br.

Nikhil

Insan28
Explorer
0 Kudos

Hi Nikhil,

Thanks for the workaround ..for now I am going ahead with radio button.

Is there any news from SAP when they will enable the getActiveSelectedMembers() for dimension input control.

Thanks

Akshay_Bhandari
Participant
0 Kudos

Hello Nikhil,

Thanks for this, it works. Now I have to Compute a logic on the value selected in the Input control  captured in the script variable and display it .  I tried the same on ON initialization and ON Active, But it is not working .

 

When I select value in the input control The logic is not executed. Could you guide where this piece of logic needs to be written.

Regards

Akshay

Akshay_Bhandari
Participant
0 Kudos
Hello Nikhil , it works but I want to write a if condition over the script variable and display it .I have written the If Condition On initialization and on Active screen but. when i change the input control the computed value from the IF condition is not reflecting , Could you please guide under which section this logic needs to be added. ?