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

DS 1.6 getData Method reading a measure against dimension...

$
0
0

Dear All,

 

I am reading a measure a value as zero/0 against a dimension value empty/# from SAP BEx Query Data Source. I have following script for it and which is behaving strangely.

 

var measure1 = DS_MONTHLY_MATCHING_ANALYSIS.getData("00O2TM3FZ87JRJZEDI5EI31TY", {"CCOCCMNT":""});

var measure2 = DS_MONTHLY_MATCHING_ANALYSIS.getData("00O2TM3FZ87JRJZEDI5EI31TY", {"CCOCRCODE":""});

 

 

APPLICATION.alert(" measure 1" + measure1.value);

 

 

if ( measure1.value == 0 || measure2.value == 0)

 

 

{

  POPUP_SAVE_ICON_UNMATCH.hide();

  APPLICATION.alert("True Un-Match Report");

  POPUP_COMMENT_UNMATCH.show();

 

}

 

 

else

    {

    POPUP_SAVE_ICON_UNMATCH.hide();

    APPLICATION.alert("False Un-Match Report");

    }

 

Following is the “Output” of the query and you can see I have highlighted the dimensions which I am reading from “SAP BEx Query” and the measure as well.


firstscreenshot.gif

Following is the behavior of the Design Studio report/application when I click on “SAVE” Icon and my “Script” executes/triggers:


secondscreenshot.gif


  1. Why it is showing value for the measure 10, as you can see it is 0 from the SAP BEx Query Output in Cross Tab?
  2. Secondly, according to my IF statement; it is going to “True” part means its working fine, how come?
  3. Am I reading “#” for dimensions correctly, as I have used “ ” for reading null or “#” for dimensions?

 

I will appreciate a reply in this matter.

 

Many thanks!

 

Tariq Ashraf


Viewing all articles
Browse latest Browse all 4216

Trending Articles



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