I'm creating web2py site using FullCalendar Scheduler Javascript event calendar.
I create 3 different views:
views: {
agendaDay: {
type: 'agenda',
duration: { days: 1 },
titleFormat: 'ddd D MMMM YYYY',
slotLabelFormat: 'HH:mm',
slotDuration: '00:15:00',
groupByResource: true
},
agendaTwoDay: {
type: 'agenda',
duration: { days: 2 },
titleFormat: 'ddd D MMMM YYYY',
slotLabelFormat: 'HH:mm',
slotDuration: '00:15:00',
groupByResource: true
},
agendaWeek: {
type: 'agenda',
duration: { weeks: 1 },
titleFormat: 'ddd D MMMM YYYY',
slotLabelFormat: 'HH:mm',
slotDuration: '00:15:00',
groupByResource: true
}
}
The defaultView
is agendaWeek
, but a user can choose. If the user choose another view and create an event, I want that after creating event the view selected by the user will be shown. Not the defaultView
. How to do?
I have to work in the controller web2py function or directly in the web2py view? In which way?