Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Re: Design Studio 1.5 how to get Filtercount information ?

$
0
0

If you need to know how many dimensions are filtered, you can also use the script from the Generic Analysis Template of SAP:

var dimsrow = DS_1.getDimensions();

var count = 0;

dimsrow.forEach(function(element, index) {

      /* Check if Filter is set */

         if (DS_1.getFilterText(element.name) != "") {

        count = count + 1;           

         }  

});

 

if (count > 0) {

 

    BUTTON_HEADER_FILTER.setText(TEXT_POOL.Filtered + count + "" + ")");

}

else {

    BUTTON_HEADER_FILTER.setText(TEXT_POOL.NoFilters);

}

You can find it on the OnResultChanged event of the datasource. You could even combine it with what Mustafa and Alfred suggested


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>