on 05-31-2016 8:31 PM
Hi All,
I have extended "Track My Request" App and deployed on to SAPUI5 repository. When I try to opne the extended App from Launchpad I get the below error.
Uncaught Error: found in negative cache: 'fcg/mdg/mychangerequest/Component.js' from /sap/bc/ui5_ui5/sap/ZXXX-YYYY/Component.js: TypeError: Cannot read property 'extend' of undefined
Thanks in Advance.
Hi Lakshmi,
Share your component.js code.
Regards,
Viswa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
jQuery.sap.declare("fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "fcg.mdg.mychangerequest",
// Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository
url: "/sap/bc/ui5_ui5/sap/MDG_MY_REQ" // we use a URL relative to our own component
// extension application is deployed with customer namespace
});
this.fcg.mdg.mychangerequest.Component.extend("fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.Component", {
metadata: {
version: "1.0",
config: {},
customizing: {
"sap.ui.controllerExtensions": {
"fcg.mdg.mychangerequest.view.S1": {
"controllerName": "fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.view.S1Custom"
}
}
}
}
});
Hi Lakshmi,
Addition to Viswa's points, after deployment UI5 app to Gateway server.
Login to back-end open UI5 application through SE80 --> BSP Applicaiton --> <UI5 Application name>
cross check "UI5RepositoryPathMapping.xml" file.
<MappingEntry
path = "Component.js"
is_folder = ""
internal_rep = "B"
internal_rep_path = "Component.js" />
If your using UI5 > 1.28.X version.
"Component.js" will be under "webapp" folder then change mapping as below.
<MappingEntry
path = "/webapp/Component.js"
is_folder = ""
internal_rep = "B"
internal_rep_path = "Component.js" />
Save and activate. Try launching the application.
Thanks,
Lakshman Balanagu.
This is usually a syntax error. Have you checked the Component.js to see if there are any javascript syntax errors? Sometimes I'll use something like this online viewer just to check for syntax errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.