src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sParameterName, sValue, sToValue) {
			var oParameter = this._oParameterization.findParameterByName(sParameterName);
			if (!oParameter) {
				throw "Invalid parameter name " + sParameterName; // TODO improve
			}
			// error handling
			if (sToValue != null) {
				if (!oParameter.isIntervalBoundary()) {
					// TODO improve error handling
					throw "Range value cannot be applied to parameter " + sParameterName + " accepting only single values"; // TODO
				}
				if (!oParameter.isLowerIntervalBoundary()) {
					// TODO improve error handling
					throw "Range value given, but parameter " + sParameterName + " does not hold the lower boundary"; // TODO
				}
			}
			if (!oParameter.isIntervalBoundary()) {
				if (sValue == null) {
					delete this._oParameterValueAssignment[sParameterName];
				} else {
					this._oParameterValueAssignment[sParameterName] = sValue;
				}
			} else {
				if (sValue == null && sToValue != null) {
					throw "Parameter " + sParameterName + ": An upper boundary cannot be given without the lower boundary"; // TODO
				}
				if (sValue == null) {
					delete this._oParameterValueAssignment[sParameterName];
					sToValue = null;
				} else {
					this._oParameterValueAssignment[sParameterName] = sValue;
				}
				var oUpperBoundaryParameter = oParameter.getPeerIntervalBoundaryParameter();
				if (sToValue == null) {
					sToValue = sValue;
				}
				if (sValue == null) {
					delete this._oParameterValueAssignment[oUpperBoundaryParameter.getName()];
				} else {
					this._oParameterValueAssignment[oUpperBoundaryParameter.getName()] = sToValue;
				}
			}
			return;
		}
function(sParameterName, sValue, sToValue) {
			var oParameter = this._oParameterization.findParameterByName(sParameterName);
			if (!oParameter) {
				throw "Invalid parameter name " + sParameterName; // TODO improve
			}
			// error handling
			if (sToValue != null) {
				if (!oParameter.isIntervalBoundary()) {
					// TODO improve error handling
					throw "Range value cannot be applied to parameter " + sParameterName + " accepting only single values"; // TODO
				}
				if (!oParameter.isLowerIntervalBoundary()) {
					// TODO improve error handling
					throw "Range value given, but parameter " + sParameterName + " does not hold the lower boundary"; // TODO
				}
			}
			if (!oParameter.isIntervalBoundary()) {
				if (sValue == null) {
					delete this._oParameterValueAssignment[sParameterName];
				} else {
					this._oParameterValueAssignment[sParameterName] = sValue;
				}
			} else {
				if (sValue == null && sToValue != null) {
					throw "Parameter " + sParameterName + ": An upper boundary cannot be given without the lower boundary"; // TODO
				}
				if (sValue == null) {
					delete this._oParameterValueAssignment[sParameterName];
					sToValue = null;
				} else {
					this._oParameterValueAssignment[sParameterName] = sValue;
				}
				var oUpperBoundaryParameter = oParameter.getPeerIntervalBoundaryParameter();
				if (sToValue == null) {
					sToValue = sValue;
				}
				if (sValue == null) {
					delete this._oParameterValueAssignment[oUpperBoundaryParameter.getName()];
				} else {
					this._oParameterValueAssignment[oUpperBoundaryParameter.getName()] = sToValue;
				}
			}
			return;
		}
function ( sParameterName , sValue , sToValue ) { var oParameter = this . _oParameterization . findParameterByName ( sParameterName ) ; if ( ! oParameter ) { throw "Invalid parameter name " + sParameterName ; // TODO improve } // error handling if ( sToValue != null ) { if ( ! oParameter . isIntervalBoundary ( ) ) { // TODO improve error handling throw "Range value cannot be applied to parameter " + sParameterName + " accepting only single values" ; // TODO } if ( ! oParameter . isLowerIntervalBoundary ( ) ) { // TODO improve error handling throw "Range value given, but parameter " + sParameterName + " does not hold the lower boundary" ; // TODO } } if ( ! oParameter . isIntervalBoundary ( ) ) { if ( sValue == null ) { delete this . _oParameterValueAssignment [ sParameterName ] ; } else { this . _oParameterValueAssignment [ sParameterName ] = sValue ; } } else { if ( sValue == null && sToValue != null ) { throw "Parameter " + sParameterName + ": An upper boundary cannot be given without the lower boundary" ; // TODO } if ( sValue == null ) { delete this . _oParameterValueAssignment [ sParameterName ] ; sToValue = null ; } else { this . _oParameterValueAssignment [ sParameterName ] = sValue ; } var oUpperBoundaryParameter = oParameter . getPeerIntervalBoundaryParameter ( ) ; if ( sToValue == null ) { sToValue = sValue ; } if ( sValue == null ) { delete this . _oParameterValueAssignment [ oUpperBoundaryParameter . getName ( ) ] ; } else { this . _oParameterValueAssignment [ oUpperBoundaryParameter . getName ( ) ] = sToValue ; } } return ; }
Assign a value to a parameter

@param {String}
sParameterName Name of the parameter. In case of a range
value, provide the name of the lower boundary parameter.
@param {String}
sValue Assigned value. Pass null to remove a value assignment.
@param {String}
sToValue Omit it or set it to null for single values. If set,
it will be assigned to the upper boundary parameter
@public
@function
@name sap.ui.model.analytics.odata4analytics.ParameterizationRequest#setParameterValue
Assign a value to a parameter