on 01-30-2024 11:01 AM
I have been playing around with the mobile development kit client #Calendarview Extension from the MDK github examples in SAP Service and Asset Manager # 2210. The issue is that the Calendarview Extension was working perfectly up until recently, but now it suddenly cannot find FUICalendarViewControlerBridge when running commatns build ios.
What I did to get it working previously was:
Add FUICalendarViewControllerBridge.swift (from the to the MDK github examples) SAM.mdkproject/App_Resources/iOS/src folder of the SAM.mdkproject folder
Add ZCalendarViewModule/controls/ZCalendarViewControl.ts to SAM.mdkproject/extensions
Add a FormCell Extension to an MDK page
When trying to access the page, the application crashes. I have also tried building a plugin from the swift file as discussed in this SAP blog, but still the same issue.
I am unsure what the exact cause is, as I don't seem to recall changing anything related to the calendarview extension in the SSAM client itself. Does anyone know what is happening here? I know MDK 23.12 will introduce a Calendarview control, but understanding what is happening here would aid my future developments regarding SSAM and MDK.
I took the example Github extension and added into my SAM client putting the swift file into the SAM mdkproject and included the extension control in the metadata/Extensions folder and was able to create a page to display the Calendar as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CalendarControl.ts file from the sample is a metadata extension control. It should be placed in the metadata/Extenstions/CalendarControl/controls folder not in a folder under .mdkproject/extensions. Please give this a try and see if that addresses the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What version of MDK client are you using for your test?
Does the CalendarView extension still work as published on the samples repo but not in your SAM app or is it not working in both cases?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are 2 things I am curious about the most:
I am wondering why in the CalendarViewExtensionApp example, the client is able to read the extension from the metadata, while in SSAM it cannot. When I checked in the debugger, it searches for the CalendarControl module in the SSAM client extensions folder. That's why I put it there at first.
Secondly, why it cannot suddenly cannot find FUICalendarViewControlerBridge. I have tried adding the calendarview extension to SSAM on a computer of my colleague, but the same problem occurs.
I have tried everything I can think of to make it work, if you have any insights I would be immensely grateful @bill_froelich
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.