Class Index | File Index

Classes


Class sap.ushell.cpv2.services.cloudServices.URLHelper

Generates platform and account dependent URLs
Defined in: URLHelper.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
createComponentURI(sComponentID, sPath)
Creates URI relative to component.
 
createDataSourceURI(sComponentID, sDataSourceKey, sPath)
Creates Data Source URI Creates URLs that are calculated with the same rules as URI of data source in manifest.json
Class Detail
sap.ushell.cpv2.services.cloudServices.URLHelper()
Method Detail
{string} createComponentURI(sComponentID, sPath)
Creates URI relative to component. Generates platform and account dependent URL
Parameters:
sComponentID
- Component ID
sPath
- e.g: "/img/logo.jpg"
Returns:
{string} e.g: "/sap/fiori/app_subscription_name/path/to/component/img/logo.jpg".

{string} createDataSourceURI(sComponentID, sDataSourceKey, sPath)
Creates Data Source URI Creates URLs that are calculated with the same rules as URI of data source in manifest.json
Parameters:
sComponentID
- Component ID
sDataSourceKey
- Data source key (under sap.ui5/models) , e.g: "equipment"
sPath
- e.g:"/materials/1/parts?skip=10&limit=10"
Returns:
{string} e.g: "/sap/fiori/app_subscription_name/path/to/component/equipment/materials/1/parts?skip=10&limit=10".

©Copyright (c) 2009-2014 SAP SE, All Rights Reserved
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 02 2017 06:47:58 GMT-0000 (UTC)