on 12-02-2015 12:09 PM
Hi,
You've been able to create the extension project successfully and you're getting an error when previewing it? How did you choose to preview the application?
You're using the local Web IDE right?
Regards,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure.
ETG is the Gateway system of my client and it's defined in "c:\SAPWEBIDE\eclipse\config_master\service.destinations\destinations\" as :
#ServiceDestination
Description=ETG
Type=HTTP
TrustAll=true
Authentication=BasicAuthentication
WebIDEUsage=odata_abap,ui5_execute_abap,dev_abap
Name=ETG
URL=http\://ip\:8000
ProxyType=OnPremise
WebIDESystem=ETG
WebIDEEnabled=true
sap-client=000
{
"welcomeFile": "index.html",
"routes": [
{
"path": "/sap/opu/odata",
"target": {
"type": "destination",
"name": "SAP_Gateway",
"entryPath": "/sap/opu/odata/"
},
"description": "Target OData system"
},
{
"path": "/sap/ui5/1/resources/sap/cus/crm/lib/reuse",
"target": {
"type": "application",
"name": "cuscrmlibreuse",
"entryPath": "/sap/cus/crm/lib/reuse",
"preferLocal": true
},
"description": "CRM LIB Reuse"
},
{
"path": "/sap/ui5/1/resources/sap/retail/store/lib/reuse",
"target": {
"type": "application",
"name": "retailstorelibreuse",
"entryPath": "/sap/retail/store/lib/reuse",
"preferLocal": true
},
"description": "Retail Store Lib Reuse"
},
{
"path": "/sap/ui5/1/resources/sap/hcm/lib/common",
"target": {
"type": "application",
"name": "hcmlibcommon",
"entryPath": "/sap/hcm/lib/common",
"preferLocal": true
},
"description": "HCM Lib Reuse"
},
{
"path": "/sap/bc/ui5_ui5",
"wattUsage": "ui5_execute_abap",
"target": {
"type": "destination",
"name": "ETG",
"entryPath": "/sap/bc/ui5_ui5"
},
"description": "ETG"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
}
]
}
Hi Marius,
Can you please import the My Contacts app from your ABAP to Web IDE and see if it runs?
I would like to try and isolate the problem. I see that the OfflineInterface.js could not be found and it should be found in the original application.
Please try and let me know the outcome.
Thanks,
Michal.
Hi Michal ,
When I try to run tha pp it tells me that there is an error. "Incomplete run configuration" and sends me to the create Run configuration page.
Regarding the offlineInterface.js file, I do get an error in the console:
Thank you,
Marius
Sorry for the delay in response.
The neo-app.json you attached earlier, is it of the generated extension project or the original My Contacts app?
The version of the local Web IDE is very old and is lacking many bug fixes.
There should be an update soon but until then, can you use the cloud version of Web IDE?
Regards,
Michal.
Sure.
Original app:
{
"cacheControl": [
{
"maxAge": 86400
}
],
"routes": [
{
"path": "/sap/opu/odata",
"target": {
"type": "destination",
"name": "etb",
"entryPath": "/sap/opu/odata"
},
"description": "etb"
},
{
"path": "/sap/ui5/1/resources/sap/cus/crm/lib/reuse",
"target": {
"type": "application",
"name": "cuscrmlibreuse",
"entryPath": "/sap/cus/crm/lib/reuse",
"preferLocal": true
},
"description": "CRM LIB Reuse"
},
{
"path": "/sap/ui5/1/resources/sap/retail/store/lib/reuse",
"target": {
"type": "application",
"name": "retailstorelibreuse",
"entryPath": "/sap/retail/store/lib/reuse",
"preferLocal": true
},
"description": "Retail Store Lib Reuse"
},
{
"path": "/sap/ui5/1/resources/sap/hcm/lib/common",
"target": {
"type": "application",
"name": "hcmlibcommon",
"entryPath": "/sap/hcm/lib/common",
"preferLocal": true
},
"description": "HCM Lib Reuse"
},
{
"path": "/sap/bc/ui5_ui5",
"target": {
"type": "destination",
"name": "etb",
"entryPath": "/sap/bc/ui5_ui5"
},
"description": "etb"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
}
]
}
Extended app:
{
"welcomeFile": "/webapp/index.html",
"routes": [
{
"path": "/sap/opu/odata",
"wattUsage": "odata_abap",
"target": {
"type": "destination",
"name": "etb",
"entryPath": "/sap/opu/odata"
},
"description": "etb"
},
{
"path": "/sap/bc/ui5_ui5",
"wattUsage": "ui5_execute_abap",
"target": {
"type": "destination",
"name": "etb",
"entryPath": "/sap/bc/ui5_ui5"
},
"description": "etb"
},
{
"path": "/webapp/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/webapp/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/dist/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/dist/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
}
],
"sendWelcomeFileRedirect": true
}
Hi Marius, sorry it took me so long to figure this out, this is actually a known issue in these apps that use an external library.
If you will import these apps and look at their Component.js you will see they have some "hack" in the way they load the external library.
The way to overcome it in the extension project is by adding the code I wrote.
A better and much more elegant solution is on its way, we actually already support it in Web IDE but the Fiori apps should adapt their code and this hasn't happen yet.
So in the meanwhile this is the workaround when executing extension projects for Fiori apps that use external libraries (the workaround changes if the library is different).
Regards,
Michal.
Hi guys,
Any other ideas ?
Although I can access the ABAP Repository, I can't run any of the Fiori apps from it.
Regards,
Mrius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.