on ‎2024 May 27 6:40 PM
Hi experts, I am trying to make my MDK application work for the web, but the problem I am running into is that the master data isn't loading. I have already configured the BTP destination and also pointed the mobile services destination to the BTP destination. I don't know if I am missing a step in the configuration. For more context, the MDK app has offline capabilities.
Request clarification before answering.
The InitializeOffline.action defined in your MDK project is of type Action.Type.OfflineOData.Initialize which is applicable to mobile only. This action type won't work (and is not supported) on MDK web, which is why your MDK web doesn't initialize the service.
As we expanded MDK support for web some time ago, we introduced a new action type Action.Type.ODataService.Initialize that will work for both mobile (online/offline) and web (online only) platforms in a given MK project. This way, you can run the same MDK metadata on both mobile and web platforms(keeping web runtime limitations in mind).
You can:
For example:
"OnLaunch": ["$(PLT,/MDKApp/Actions/Service/InitializeOffline.action,/MDKApp/Actions/Service/InitializeOffline.action,/MDKApp/Actions/Service/InitializeOnlineWeb.action)"],
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you share how the OData service is initialized in your application? Open the action bound to OnLaunch event under Application.app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You shared the screenshot from InitializeAppWeb.action. I wanted to look at the definitition from InitializeOffline.action https://community.sap.com/t5/image/serverpage/image-id/116094i5A3DAACCAE1A53D4
Edited: Looks like you updated your last comment with screenshot (what I asked in this comment). All good. I got what I was looking.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.