on 2025 Oct 04 3:28 PM
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);
}
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...
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.