Skip to Content

Mendix app: how to configure destination to SAP backend?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 13 at 09:42 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 13 at 11:06 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 25 at 07:31 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded