Skip to Content
0

Show on Click Display and navigational Attribute

Apr 18, 2017 at 09:35 AM

31

avatar image

Hi

I got a Datasource which is binded on a Crosstab. I wrote an alert to show the Dimensions an Measures. But if I add a Display Attribute via ContextMenu from Crosstab

it wont appear in the alert.

var Dim_Array_Rows = DS_1.getDimensions(Axis.ROWS); 
var Dim_Array_Cols = DS_1.getDimensions(Axis.COLUMNS);
var Rows = ""; 
var Cols = ""; 
Dim_Array_Rows.forEach(function(element, index) { 
Rows = Rows + element.name +" ("+element.text+")\n" + "Filter "+DS_1.getFilterText(element.name)+" ("+DS_1.getFilterExt(element.name)+")\n"+"Display"+DS_1.getMemberDisplay(element.name)+";\n\n";
}); 

Dim_Array_Cols.forEach(function(element, index) { 
Cols = Cols +  element.name +" ("+element.text+")\n" + "Filter "+DS_1.getFilterText(element.name)+" ("+DS_1.getFilterExt(element.name)+")\n"+"Display"+DS_1.getMemberDisplay(element.name)+";\n"+DS_1.getScalingFactor(DS_1.getFilterExt(element.name))+"\n"+ DS_1.getDecimalPlaces(DS_1.getFilterExt(element.name))+"\n\n";
});

APPLICATION.alert("Dimensions in Row:\n"+Rows+"\n\nDimensions in Cols:\n"+Cols+"\n"); 
1.png (29.5 kB)
2.png (51.7 kB)
10 |10000 characters needed characters left characters exceeded

Hi - is there a reason for an alert? Why not use a button to display this? Or a navigation panel? See https://blogs.sap.com/2014/11/06/sap-design-studio-tips-tricks-tweaking-navigation-mode-in-a-filter-panel/

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers