Hey all.
I have created a custom Calendar app linked to 30 SP-lists (different calendars for conference rooms - without Outlook-connector).
After selecting the right calendar, the variable 'CaltoUse' is set to 'Calendar#' - ex Set(CaltoUse,Calendar1).
In the CalenderEventsGallery on the next screen I use for 'Items' the Switch-function to connect to the corresponding calendar (SPlist 'Cal#') - ex. Switch(CaltoUse, "Calendar1",Cal1,"Calendar2",Cal2).
In every datacard I have an Icon (icnDelete) and I want to delete the selected record when pressed.
Question: what is the right formula to achieve this?
Remove (Cal1, ThisItem) works, but I want to implement the right calendar, depending on the variable CaltoUse.
Remove (Switch(CaltoUse, "Calendar1",Cal1,"Calendar2",Cal2), ThisItem) doesn't work.
Any ideas?
Thanks in advance