@sapui5/sap.chart 1.96.23 → 1.96.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/sap/chart/.library
CHANGED
package/src/sap/chart/Chart.js
CHANGED
|
@@ -756,11 +756,14 @@ sap.ui.define([
|
|
|
756
756
|
|
|
757
757
|
Chart.prototype.setVisibleMeasures = function(aMeasureNames, bSuppressInvalidate) {
|
|
758
758
|
this.setProperty("visibleMeasures", aMeasureNames, bSuppressInvalidate);
|
|
759
|
-
var
|
|
759
|
+
var oDrillStateStack = this._drillStateStack || [];
|
|
760
760
|
if (!this._bIsInitialized) {
|
|
761
761
|
this._createDrillStack();
|
|
762
762
|
} else {
|
|
763
|
-
|
|
763
|
+
//Update all drill-stack levels with new visible measures.
|
|
764
|
+
oDrillStateStack.forEach(function(oDrillState){
|
|
765
|
+
oDrillState.measures = this.getProperty("visibleMeasures");
|
|
766
|
+
}.bind(this));
|
|
764
767
|
}
|
|
765
768
|
|
|
766
769
|
this._invalidateBy({
|
|
@@ -2055,9 +2058,10 @@ sap.ui.define([
|
|
|
2055
2058
|
oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
|
|
2056
2059
|
this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
|
|
2057
2060
|
if (this.getIsAnalytical()) {
|
|
2061
|
+
var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
|
|
2058
2062
|
if (oBindingInfo) {
|
|
2059
2063
|
var bNoPaging = true;
|
|
2060
|
-
if (oBindingInfo.length != undefined || this._isEnablePaging()) {
|
|
2064
|
+
if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
|
|
2061
2065
|
bNoPaging = false;
|
|
2062
2066
|
}
|
|
2063
2067
|
oBindingInfo.parameters = jQuery.extend(true, {
|
|
@@ -2106,9 +2110,10 @@ sap.ui.define([
|
|
|
2106
2110
|
oOData4SAPAnalyticsModel = this._createOData4SAPAnalyticsModel(oModel);
|
|
2107
2111
|
this._setIsAnalyticalProperty(oOData4SAPAnalyticsModel, oBindingInfo);
|
|
2108
2112
|
if (this.getIsAnalytical()) {
|
|
2113
|
+
var V2ODataModel = sap.ui.require("sap/ui/model/odata/v2/ODataModel");
|
|
2109
2114
|
if (oBindingInfo) {
|
|
2110
2115
|
var bNoPaging = true;
|
|
2111
|
-
if (oBindingInfo.length != undefined || this._isEnablePaging()) {
|
|
2116
|
+
if (oBindingInfo.length != undefined || this._isEnablePaging() || V2ODataModel && (oModel instanceof V2ODataModel)) {
|
|
2112
2117
|
bNoPaging = false;
|
|
2113
2118
|
}
|
|
2114
2119
|
oBindingInfo.parameters = jQuery.extend(true, {
|