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>
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.