Skip to Content
avatar image
Former Member

Show on Click Display and navigational Attribute

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers