cancel
Showing results for 
Search instead for 
Did you mean: 

TDG demo app down in SAPUI5 docu

Former Member
0 Kudos

Hello,

in the SAPUI5 documentation the link to the TDG demo app is down:

https://sapui5.hana.ondemand.com/sdk/test-resources/sap/m/demokit/tdg/index.html

It is in Developer Guide -> Best Practices

Can someone please fix it? Thanks.

Accepted Solutions (0)

Answers (6)

Answers (6)

apoeschl
Participant
0 Kudos

Hi,

as I came across the same problem with the SAPUI5 Guide, I changed the URL to the following:

  config : {

       resourceBundle : "i18n/messageBundle.properties",

       serviceConfig : {

            name : "Northwind",

            serviceUrl : "proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"

       }

  },

This solved the problem for me and I'm can use the OData service now.

Regards,
Andreas

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Denise and all,

there is a fixed (temporary) version of the TDG app available here now:

https://openui5test.hana.ondemand.com/test-resources/sap/m/demokit/tdg/index.html?responderOn=true

Regards

Andreas

Former Member
0 Kudos

Great, thanks Andreas!

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

No, it's not.

And the original is also not running.

AndreasKunz
Advisor
Advisor
0 Kudos

Hi,

the original one should be running now:

https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/tdg/index.html?responderOn=true

(the fixed version 1.20.7 is now deployed)

Please clear your cache in case it doesn't.

Regards

Andreas

andreas_appelt
Explorer
0 Kudos

Hi Andreas,

I made the demo till Step 7. The content of the browser looks correct.But I get error messages in Chrome Console:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/sap.ui.demo.tdg/Component-preload.js

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/sap.ui.demo.tdg/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/$...

  1. 2014-08-01 13:04:40 The following problem occurred: HTTP request failed404,Not Found,<html><head><title>Apache Tomcat/7.0.52 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-

I guess it's because of the OData URL ...
serviceUrl : "http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/" in Component.js.

I also tried  "/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/" but get the same message.

Do you know which URL I have to use?

Thanks.

Regards, Andreas

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Andreas,

the first error can be ignored, the app is just checking for an optimized bundle file.

However, I just checked the TDG documentation and am really puzzled about the

    serviceUrl : "/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"

part. This shouldn't be there. It's a reference to an internal test app containing a forwarding proxy.

You can try to temporarily disable the cross-domain checks in Chrome ("disable-web-security") and use the real service URL:

    serviceUrl :http://services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"

That should work.

I asked internally about the docu.

Regards

Andreas

andreas_appelt
Explorer
0 Kudos

Thanks, Andreas.

I will check that again.

Regards, Andreas

volkan_bekci2
Explorer
0 Kudos

Hello Andreas,

After serviceUrl change, I got below error. I think original serviceUrl change not working.

Do you have any idea?

Thanks

AndreasKunz
Advisor
Advisor
0 Kudos

Hm, no, it seems to complain about the OPTIONS request...

volkan_bekci2
Explorer
0 Kudos

Yes . NW Gateway dont respond for OPTIONS requests..

I think i should use proxy or a method to use GET method.

0 Kudos

This worked for me. By the way, this can be done in Mac OS X by launching Chrome from the terminal with the following command:

open -a Google\ Chrome --args --disable-web-security

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Denise and all,

the TDG app is part of the SDK since 1.20.5, so the link will work once the sapui5.hana... site is updated (the update schedule is not in our hands). The openui5.hana... server (which we control) unfortunately cross-links to sapui5.hana... for the TDG app, so the link also does not work until sapui5.hana is updated, even though the app itself is there: TDG Demo App

And the second issue is that the app does not start because of an error due to a hardcoded internal cross-domain proxy. We are currently switching the app to a mock service, but this will not be part of the 1.20.6 patch (due in the next 1-2 days), but only in 1.20.7.

One could of course locally remove that "/uilib-sample/proxy"... part from the URL and run the app without cross-domain restrictions (--disable-web-security in Chrome) if really eager to see it. Otherwise you'd have to wait two more weeks or so.

Sorry

Andreas

AndreasKunz
Advisor
Advisor
Former Member
0 Kudos

Release Notes:

OpenUI5 SDK - Demo Kit


  • [FIX] Added missing Demo App for TDG

However, the App is down.

Failed to load resource: the server responded with a status of 404 (Not Found) https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/tdg/Component-preload.js

Failed to load resource: the server responded with a status of 404 (Not Found) https://openui5.hana.ondemand.com/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OD...

  1. 2014-05-15 16:06:13 The following problem occurred: HTTP request failed404,Not Found,<html><head><title>SAP - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/$metadata</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/$metadata</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>SAP</h3></body></html> -  sap-ui-core.js:80

Uncaught TypeError: undefined is not a function

Faaiez
Advisor
Advisor
0 Kudos

It would be nice to have a working demo or at least a place to download it.

Former Member
0 Kudos

Hi guys,

Would be nice to have the app up and running again,

Regards,

Jeroen