on 04-02-2018 11:09 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.