src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sResourcePath) {
			this._sResourcePath = sResourcePath;
			if (this._sResourcePath.indexOf("/") != 0) {
				throw "Missing leading / (slash) for resource path";
			}
			if (this._oQueryResult.getParameterization()) {
				var iLastPathSep = sResourcePath.lastIndexOf("/");
				if (iLastPathSep == -1) {
					throw "Missing navigation from parameter entity set to query result in resource path";
				}
				var sNavPropName = sResourcePath.substring(iLastPathSep + 1);
				if (sNavPropName != this._oQueryResult.getParameterization().getNavigationPropertyToQueryResult()) {
					throw "Invalid navigation property from parameter entity set to query result in resource path";
				}
			}
		}
function(sResourcePath) {
			this._sResourcePath = sResourcePath;
			if (this._sResourcePath.indexOf("/") != 0) {
				throw "Missing leading / (slash) for resource path";
			}
			if (this._oQueryResult.getParameterization()) {
				var iLastPathSep = sResourcePath.lastIndexOf("/");
				if (iLastPathSep == -1) {
					throw "Missing navigation from parameter entity set to query result in resource path";
				}
				var sNavPropName = sResourcePath.substring(iLastPathSep + 1);
				if (sNavPropName != this._oQueryResult.getParameterization().getNavigationPropertyToQueryResult()) {
					throw "Invalid navigation property from parameter entity set to query result in resource path";
				}
			}
		}
function ( sResourcePath ) { this . _sResourcePath = sResourcePath ; if ( this . _sResourcePath . indexOf ( "/" ) != 0 ) { throw "Missing leading / (slash) for resource path" ; } if ( this . _oQueryResult . getParameterization ( ) ) { var iLastPathSep = sResourcePath . lastIndexOf ( "/" ) ; if ( iLastPathSep == - 1 ) { throw "Missing navigation from parameter entity set to query result in resource path" ; } var sNavPropName = sResourcePath . substring ( iLastPathSep + 1 ) ; if ( sNavPropName != this . _oQueryResult . getParameterization ( ) . getNavigationPropertyToQueryResult ( ) ) { throw "Invalid navigation property from parameter entity set to query result in resource path" ; } } }
Set the resource path to be considered for the OData request URI of this
query request object. This method provides an alternative way to assign a
path comprising a parameterization. If a path is provided, it overwrites
any parameterization object that might have been specified separately.

@param {string} sResourcePath
Resource path pointing to the entity set of the query result.
Must include a valid parameterization if query contains
parameters.
@public
@function
@name sap.ui.model.analytics.odata4analytics.QueryResultRequest#setResourcePath
Set the resource path to be considered for the OData request URI of this query request object . This method provides an alternative way to assign a path comprising a parameterization . If a path is provided it overwrites any parameterization object that might have been specified separately .