Skip to Content
1

Mendix app: how to configure destination to SAP backend?

Apr 02 at 10:09 AM

52

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

David Garcia Apr 13 at 09:42 AM
0

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!

Share
10 |10000 characters needed characters left characters exceeded
J. Heutmekers Apr 13 at 11:06 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Michal Keidar
Apr 25 at 07:31 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded