cancel
Showing results for 
Search instead for 
Did you mean: 

Mendix app: how to configure destination to SAP backend?

john_heutmekers2
Participant

Hi,

I have successfully deployed a Mendix app to the SCP. The app should use odata services from an on-premise Gateway system. The cloud connector is set up successfully and a Destination has been defined in the Clound Foundry part for this Gateway system. The Mendix app has a user-defined variable which holds the url to this backsystem which was used during modeling the app and running it locally. Once deployed to the SCP this user-defined variable should be replaced with "something" to point to the destination. Is there any how-to or best practice guide available?

Kind regards,


John.

Accepted Solutions (0)

Answers (3)

Answers (3)

michal_keidar
Active Contributor
0 Kudos

Hi,

There is actually no need to create a destination.

If the Cloud Connector is set-up correctly, then your user-defined variable should contain the service root URL, including your backend's virtual host as configured in your Cloud Connector.

Then, using the SAP OData Connector, you should mark the "Use SAP cloud connector" as "True" in the action, and once the app is deployed to SAP CP, the Cloud Connector is automatically being utilized to gain access to your backend.

More details on this can be found here (under the Introduction):
https://docs.mendix.com/refguide/sap/sap-odata-connector

Regards,
Michal.

john_heutmekers2
Participant
0 Kudos

Hi David,

That's exactly the same solution I have implemented in the end, but I fully agree that this can't be the correct solution, as defining the Destination in Cloud Foundry is meant to be used for this, but I still have no clue how to use this Destination in the Mendix app.

0 Kudos

I was in the same situation and I ended up changing manually that user-defined variable to point to the url defined in the destination. This way I finally made it work.

I would also like to know if there is any way of solving this in a more "beautiful" way, since I think it should be one option available through mendix modeler.

Thanks for raising the question!