Calendar/Source Selection
Posted:
Fri Oct 25, 2019 12:27 pm
by Graham
Hi,
I have the need to restrict the source selection to one source at a time, essentially having it behave like a radio button. Is this possible within side bar or is it maybe doable to move the source selection to my custom side bar?
Thanks!
Re: Calendar/Source Selection
Posted:
Fri Oct 25, 2019 12:32 pm
by JasonYoung
Hi Graham,
There is no way to tie an action to Calendar selection in DayBack for FileMaker, e.g. deselect all the other calendars but this one. The custom sidebar is the way to go for this.
hth,
Jason
Re: Calendar/Source Selection
Posted:
Fri Oct 25, 2019 12:55 pm
by Graham
Thanks Jason...could you maybe point me in the direction of what action I would call if I had say a radio button on my sidebar to select the source...
Re: Calendar/Source Selection
Posted:
Mon Oct 28, 2019 6:02 am
by kcembrey
Hi Graham,
You can control the active sources by setting the $$sc_SourcesActive variable in the "Event Find" script based on your calendar selection as detailed in the docs here:
https://www.seedcode.com/pmwiki/index.p ... #ScriptingTo refresh the calendar and update the sources after you've made a selection in your own FileMaker object, you can use the "Refresh Calendar" script, as detailed here:
https://www.seedcode.com/pmwiki/index.p ... shCalendarAs the docs mention, this will not actually change the selection of active sources in the built-in sidebar, so you really only want to use this menu if you plan on using your own sidebar, or at least hiding the Calendar Sources tab in the sidebar:
https://www.seedcode.com/pmwiki/index.p ... ideSidebarRegards,
KC