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

SAC Application : How to capture the selected value from a Table

kiran_s611
Explorer
0 Kudos
289

Hi All,

I am trying to capture the selected value from a table. Right now i am using the below script which is capturing the entire row. 

var select = Source_Obj.getSelections();

console.log("selected dimension...");

console.log(select);

if (select.length > 0) {

var members = ArrayUtils.create(Type.string);

for (var i=0; i < select.length; i++) {

for (var dimension in select[i]) {

if (dimension === Dim) {

console.log("Passing dimension ..."+Dim);

members.push(select[i][dimension]);

}

 

}

}

Target_Obj.getDataSource().setDimensionFilter("Country",members);

}

kiran_s611_0-1759588007936.png

 

When i am clicking on the country value "South Korea" it is capturing the entire row. 

Is there any way to capture exact value in the selected cell. I want to capture the selected cell value and filter the data in another widget based on this value. 

Can anyone of you please help me on this.
Thanks... 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Dominik_Z
Participant
0 Kudos

Hello,

i think this is not possible. Please check, if it is the same requirement as discussed bellow.

https://influence.sap.com/sap/ino/#/idea/280582/?section=sectionDetails

and Solved: SAC APP Designer - How to display selected value i... - SAP Community

Best regards

William_Yu1
Product and Topic Expert
Product and Topic Expert
0 Kudos

With returned selection, you can use JS to get the value of the exact dimension you are looking for, one dimension only appears once in the selection any.

However, if you just want to filter another widget based on the selected row/cell, you can enable linked analysis between this table and other widgets with context.