Show TOC

Identifying the Component NameLocate this document in the navigation structure

This section describes how to identify the SAPUI5 component name based on the location of the application's resource file.

Context

If you know the location of an SAPUI5 application in the BSP repository, you can look up the component name in the Component.js file.

Procedure

  1. Enter the URL of the Component.js file of your SAPUI5 application into your web browser.

    The URL of the Component.js. file has the following syntax:

    http://<server>:<port>/<path>/Component.js

    For example, if the path of your SAPUI5 application is /sap/bc/ui5_ui5/sap/crm_opprtnty, the URL would be as follows:

    http://<server>:<port>/sap/bc/ui5_ui5/sap/crm_opprtnty/Component.js

    Replace <server> and <port> with the server and port of your SAP Fiori launchpad installation.

    The code of the Component.js file is displayed.

  2. In the code of the Component.js file, locate a line starting with jQuery.sap.declare.

    This line has the following syntax:

    jQuery.sap.declare("<componentName>.Component")

    For example, if the part between the brackets reads ("cus.crm.opportunity.Component"), the component name is cus.crm.opportunity.