cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect sapui5 app with destination in CloudFoundry?

Former Member
0 Kudos
6,024

Hello,

I have a question about the connection between UI5 app and destination in CF.

In Neo environment I just create a destination and write the description in neo-app file, but how can I connect the app to the destination in CF?

Thank you in advance.

View Entire Topic
richard-zhao
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello, Tatiana Rastorgueva. Could you check the post below, Please?

Destination Configuration

Unlike SAP Cloud Platform Neo, the Cloud Foundry environment does not offer a Destination API that application developers may use directly to connect to a resource over the web. But this limitation can be easily overcome through User-Provided Environment Variables and consuming them in your application.

This is how it works on the Cloud Foundry environment.

  • In your SAP Cloud Platform Cockpit, access the application.
  • Define a new “User-Defined Variable”. An example could be: key = “ServiceDestination”. Value = [{name: “ServiceDestination”, url: “https://hostname.domain.com”, username: “Username”, password: “LoginPassword”}].
  • In your application, use this variable to call the respective service.
Mayanksaxena15
Participant
0 Kudos

Hello,

COuld you please eleborate , how to use the variable to call the service ?