src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oEvent) {
				if (this._oView) {
					this._oView.destroy();
					// If we had a view that means this is a navigation so we need to init the busy state
					this._oContainerPage.setBusy(true);
				}

				var oComponent = this.getOwnerComponent();

				this._sTopicid = decodeURIComponent(oEvent.getParameter("arguments").id);
				this._sEntityType = oEvent.getParameter("arguments").entityType;
				this._sEntityId = decodeURIComponent(oEvent.getParameter("arguments").entityId);

				// API Reference lifecycle
				oComponent.loadVersionInfo()
					.then(function () {
						// Cache allowed members
						this._aAllowedMembers = this.getModel("versionData").getProperty("/allowedMembers");
					}.bind(this))
					.then(APIInfo.getIndexJsonPromise)
					.then(this._processApiIndexAndLoadApiJson.bind(this))
					.then(this._findEntityInApiJsonData.bind(this))
					.then(this._buildBorrowedModel.bind(this))
					.then(this._createModelAndSubView.bind(this))
					.then(this._initSubView.bind(this))
					.catch(function (vReason) {
						// If the symbol does not exist in the available libs we redirect to the not found page
						if (vReason === this.NOT_FOUND) {
							this._oContainerPage.setBusy(false);
							this.getRouter().myNavToWithoutHash("sap.ui.documentation.sdk.view.NotFound", "XML", false);
						} else if (typeof vReason === "string") {
							Log.error(vReason);
						} else if (vReason.name) {
							Log.error(vReason.name, vReason.message);
						} else if (vReason.message) {
							Log.error(vReason.message);
						}
					}.bind(this));
			}
function (oEvent) {
				if (this._oView) {
					this._oView.destroy();
					// If we had a view that means this is a navigation so we need to init the busy state
					this._oContainerPage.setBusy(true);
				}

				var oComponent = this.getOwnerComponent();

				this._sTopicid = decodeURIComponent(oEvent.getParameter("arguments").id);
				this._sEntityType = oEvent.getParameter("arguments").entityType;
				this._sEntityId = decodeURIComponent(oEvent.getParameter("arguments").entityId);

				// API Reference lifecycle
				oComponent.loadVersionInfo()
					.then(function () {
						// Cache allowed members
						this._aAllowedMembers = this.getModel("versionData").getProperty("/allowedMembers");
					}.bind(this))
					.then(APIInfo.getIndexJsonPromise)
					.then(this._processApiIndexAndLoadApiJson.bind(this))
					.then(this._findEntityInApiJsonData.bind(this))
					.then(this._buildBorrowedModel.bind(this))
					.then(this._createModelAndSubView.bind(this))
					.then(this._initSubView.bind(this))
					.catch(function (vReason) {
						// If the symbol does not exist in the available libs we redirect to the not found page
						if (vReason === this.NOT_FOUND) {
							this._oContainerPage.setBusy(false);
							this.getRouter().myNavToWithoutHash("sap.ui.documentation.sdk.view.NotFound", "XML", false);
						} else if (typeof vReason === "string") {
							Log.error(vReason);
						} else if (vReason.name) {
							Log.error(vReason.name, vReason.message);
						} else if (vReason.message) {
							Log.error(vReason.message);
						}
					}.bind(this));
			}
function ( oEvent ) { if ( this . _oView ) { this . _oView . destroy ( ) ; // If we had a view that means this is a navigation so we need to init the busy state this . _oContainerPage . setBusy ( true ) ; } var oComponent = this . getOwnerComponent ( ) ; this . _sTopicid = decodeURIComponent ( oEvent . getParameter ( "arguments" ) . id ) ; this . _sEntityType = oEvent . getParameter ( "arguments" ) . entityType ; this . _sEntityId = decodeURIComponent ( oEvent . getParameter ( "arguments" ) . entityId ) ; // API Reference lifecycle oComponent . loadVersionInfo ( ) . then ( function ( ) { // Cache allowed members this . _aAllowedMembers = this . getModel ( "versionData" ) . getProperty ( "/allowedMembers" ) ; } . bind ( this ) ) . then ( APIInfo . getIndexJsonPromise ) . then ( this . _processApiIndexAndLoadApiJson . bind ( this ) ) . then ( this . _findEntityInApiJsonData . bind ( this ) ) . then ( this . _buildBorrowedModel . bind ( this ) ) . then ( this . _createModelAndSubView . bind ( this ) ) . then ( this . _initSubView . bind ( this ) ) . catch ( function ( vReason ) { // If the symbol does not exist in the available libs we redirect to the not found page if ( vReason === this . NOT_FOUND ) { this . _oContainerPage . setBusy ( false ) ; this . getRouter ( ) . myNavToWithoutHash ( "sap.ui.documentation.sdk.view.NotFound" , "XML" , false ) ; } else if ( typeof vReason === "string" ) { Log . error ( vReason ) ; } else if ( vReason . name ) { Log . error ( vReason . name , vReason . message ) ; } else if ( vReason . message ) { Log . error ( vReason . message ) ; } } . bind ( this ) ) ; }
Binds the view to the object path and expands the aggregated line items.
@function
@param {sap.ui.base.Event} oEvent pattern match event in route 'api'
@private
Binds the view to the object path and expands the aggregated line items .