cancel
Showing results for 
Search instead for 
Did you mean: 

Extending project SAPUI5

10-20-2022 8:01 AM
almedin_hodzic53 Participant
768 views 0 comments
SAP Managed Tags
Subscribe

We have an older application that is made with Web IDE. It was an extension project, and Component.js is made like that it first loads parent Component.js. Code is deprecated and I have found new code but my question is how to structure everything.

Instead of jQuery.sap.declare I can use sap.ui.define.

Instead of sap.ui.component.load sap.ui.core.Component.load.

This was automatically generated by Web IDE.

jQuery.sap.declare("test.test.Component");

// use the load function for getting the optimized preload file if present
sap.ui.component.load({
    name: "test.Component",
    // Use the below URL to run the extended application when SAP-delivered application is deployed on cloud
    // Remove the url parameter once your application is deployed to productive account
    url: jQuery.sap.getModulePath("test.test.Component") + "/parent"
        // we use a URL relative to our own component
        // extension application is deployed with customer namespace
});

this.test.Component.extend("test.test.Component", {
metadata: { manifest: "json" } }); <br><br>

Accepted Solutions (0)

Answers (0)