Technical Articles
Explore the MDK Showcase apps
Updated 8 May 2023: Latest changes
We have now made MDK Showcase apps available which demonstrate a specific feature or functionality within the MDK. These apps were originally built by our engineering team to demo a specific MDK feature and we decided to let our community benefit from it as well.
These apps are not intended as a full end-to-end application like what we have covered in tutorials (if you haven’t got a chance to try these out, we do highly recommend doing so).
Following are the initial showcase apps, and we will continue to add more over time:
- Calendar View Extension – learn how to implement the Calendar View for Android and iOS as Extension Control
- Image Handling – learn how to store media entity to your offline store, download the media out from the offline store, display the media
- Multi-Select & Context Menu App – learn how to use Selection feature of the Object Table and how to use the context menu of the Object Cell in Object Table
- NativeScript View Extension – learn how to create and return a NativeScript view in an extension control for Form Cell Extension
- PDF Generation – learn how to generate PDF document using 3rd party open source library :
pdfmake
- Persistent Filters – learn how user defined Object Table filter settings can be persisted between opening and closing the list page
- Print and QR Codes– learn how to generate QR code (image) from text and print the image using non-UI NativeScript Plugin
- Video Player View Extension – learn how to implement the Android VideoView and iOS AVPlayer as Extension control to play remote videos
These apps are made available under the SAP Sample Code license, which essentially means they are provided as-is, no warranties. Feel free to grab and reuse the portions of the app that seem useful to you.
https://github.com/SAP-samples/cloud-mdk-samples/tree/main/Showcase_Apps
Many thanks Jitendra. I'm pretty sure they will be very useful for our community. You guys do an amazing job !!!
Hi Jitendra Kansal
This will be very helpful as many developers have been having issues regarding media handling in MDK. I did notice a slight bug in the demo 'ImageHandlingApp' you uploaded, if you create a new product with image it works perfectly fine but if you try to create other new products after that one the same first picture gets uploaded over and over again instead of the newly captured ones, even after having performed a sync operation.
I replicated this process in a personal app and the same issue persisted, I made sure to call a CloseModal_Complete action after the successful creation of the media entity too.
Hello Francisco Acuña, there is a bug with the created media entity where the value for the key properties (ProductId) is not stored as expected after the entity is created.
I have added a workaround to the showcase app:
https://github.com/SAP-samples/cloud-mdk-samples/pull/4/files
Feel free to give it a go and see if that works for you too
Added reference to the new showcase app: PDF Generation
Hello Jitendra Kansal
PDF Generation is not working since MDK version 6.0.3 for iOS.
I have posted it in the community:
https://answers.sap.com/questions/13527628/external-npm-plugin-pdfmake-doesnt-work-anymore.html
It would be great if you could help with it.
Thanks
I have added my response to your Q.
Added: Multi-Select & Context Menu App showcase app entry.
Added additional showcase app entries.