Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Set active condition issue

$
0
0

Hello experts,

 

i'm facing an issue with the activation of BEx Conditions...

 

I have 2 conditions set inactive by default. In Design Studio, i want to activate a condition for a Datasource, and the other one for the second Datasource thank this method : setMeasureFilterActive

 

To do this, i stored in an array the list of my condition (index 0, index 1), and i active it in a loop like that :

 

 

var conditions = DS_2.getMeasureFilters();

 

conditions.forEach(function(element, index) {

  APPLICATION.createErrorMessage(DS_2.getMeasureFilterName(element) + " Index : " + index + " is active ? " + DS_2.isMeasureFilterActive(element) );

 

  if (index == 0)

  {

       DS_2.setMeasureFilterActive(element, true);

  }

 

});

 

Then i check if the condition is activated :

 

conditions = DS_2.getMeasureFilters();

conditions.forEach(function(element, index) {

 

  APPLICATION.createErrorMessage(DS_2.getMeasureFilterName(element) + " Index : " + index + " is active ? " + DS_2.isMeasureFilterActive(element) );

});

 

And in theory, this is working :

capture.JPG

We can see at start, both condion are inactive, then my condition is set to active.

 

But in my crosstab, nothing change, i don't have my condition activated (TOP10) ...

In BEx Analyzer, this is working well, but not in Design Studio and i can't find why...

 

By the way, i found this : How to set a BEx Query Condition in Design Stud... | SCN, but it still not working...

 

Hope someone will be able to help with me with this

 

Best regards,

Jonas.


Viewing all articles
Browse latest Browse all 4216

Trending Articles



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