cancel
Showing results for 
Search instead for 
Did you mean: 

Connect own backend system to mdk application (Error in mdk wizard)

Emmanuel1
Explorer
0 Kudos
585

Hi everyone,

I recently start to work on MDK applications and after some tests with sample data I'm trying to use my own backend system.

My backend system is hosted by AWS, connected with a cloud connector and I'm working on SAP cloud foundry platform.

I created a destination in the CF:

And then created my application destination in Mobile services cokpit:

Everything is working good, I can try my destination by open it in another browser window and I can see entities from my service.

My problem occured in the mdk application wizard. I select my mobile service destination in the service configuration section and then depending on the "enable offline" field i get 2 different problems:

- Enable offline True: I get no entities in the next wizard section "OData Collection"

- Enable offline False: when trying to acces next wizard section, wizard crashes and i get these error messages:

(Error in mdk wizard: TypeError: gen.on(error) Cannot read property 'split' of undefined at splitOnTags)

Can someone help me fixing this please ?

Thanks for reading

Best regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

Hello,

There might be an issue with fetching OData collections Mobile Services destination that is using CF destination, will look into it.

Can you create a new mobile destination with no reference to Cloud destination and see if OData collections are being retrieved for this new destination:

  • In Mobile connectivity, create a new destination
  • do not select Cloud Platform destination option
  • URL: http://host:port/sap/.
  • Use Cloud Connector: check this option, provide Location ID if needed
  • Custom Headers: sap-client: 001
  • SSO mechanism: Basic Auth, provide User name & password
Emmanuel1
Explorer
0 Kudos

Hello,

Thanks for your response, by accessing data without cloud platfrom it works.

Best regards.

zhen-kun_li
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Marion,

Sorry for the late reply due to my holiday.

We hide the off-line option for CF destination. (There is no off-line feature for the web app deployed to CF)

But for your scenario, you want to retrieve data from CF and deploy to Mobile Services. I can discuss with PO to show the off-line option for next release.

The current workaround is:

1) Save your backend metadata xml file, and then use "Local File" OData source option. (it can show offline option)

2) Because you want to deploy Mobile Services later, please make sure you input the same destination name with Mobile Services application's destination.

Thanks,

Zhen-kun Li

zhen-kun_li
Product and Topic Expert
Product and Topic Expert
0 Kudos

It's a limitation to fetch that kind of mobile destination (cf enabled) in design time.

A workaround is to fetch CF destination to retrieve metadata in design time and deploy to mobile services.

mariondupin
Explorer
0 Kudos

Hello zhen-kun.li

I have the same issue. I try to use CF destination, it works for retrieving metadata, but not for generating the project with off-line capabilities. How can I generate my project with off-lline capabilities?
Thanks,
Marion