Hi all,
I've created some SDK components, and it works fine until I use the Setvisible function.
I'm using the SAPIU5 component rangeslide.
when I set the visibility state to 'true' the first time it works fine, but when I set it to 'false' and then back to 'true' the JS gets stuck and I cant find out what's the error.
this is my init function where the code is returning the exception:
this.init = function() { if (this._alive) { this._sl.placeAt(this.$()); return; } else { var oSlider = new sap.ui.commons.RangeSlider({ id : 'RangeSlider', tooltip: 'RangeSlider', width: '90%', totalUnits: 10, value: 0, value2: 10, smallStepWidth: 1, stepLabels : true, change : function() { sValue1 = oSlider.getValue(); sValue2 = oSlider.getValue2(); that.firePropertiesChanged(["SValue1"]); that.firePropertiesChanged(["SValue2"]); that.fireEvent("onChange"); } }); oSlider.placeAt(this.$()); this._sl = oSlider; this._alive = true; }; };
Is there any thing special needed to be handle in the init function in order to overcome this back and forth scenario?