SAP UI5 resource File location designation

Source: Internet
Author: User

Using the Android Kapsel mobile app as an example, use the SAPUI5 class library
Example 1:
Plugins\kapsel-plugin-logon\www\common\assets\ui\logonform.js
In the file to use
1) www\mobile\ directory view XML, view JS, Controller JS resource file
2) www\mymodules\ The following JS resource file

Sap. LogonForm = function () {

    JQuery.sap.registerModulePath ("mobile", ' ... /.. /.. /mobile/');
    JQuery.sap.registerModulePath ("Mymodules", ' ... /.. /.. /mymodules/');

Example 2:
Www\
The JS resource file in the file to use the Www\mymodules\ directory

<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8"/> <script
        src= "./resources/ Sap-ui-core.js "
            id=" Sap-ui-bootstrap "data-sap-ui-libs=" Sap.m,sap.ui.core "Data-sap-ui-theme=" Sap_ Bluecrystal "> </script>
        <script type=" Text/javascript "charset=" Utf-8 "src=" Cordova.js "></ script>

        <script>
            jQuery.sap.registerModulePath ("Mymodules", './mymodules/');

Reference:
Registering Component Resources

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.