The page you have created has a dataview which will display a single event object, So when you open that page, you need to pass in a single event object. If you want to display all events, just place the calendar widget on your page, not inside of a dataview. It will then display all of the events in your database.
Hope that helps,
First, create an NPE to be the context object – see below:
Create a page that has a dataview pointing to TempNPE and the calendar widget inside of it
Here is the Calendar widget configuration
Note that this configuration will show all events in the database since there is no constraint
Finally, create a nanoflow that opens this page
This nanoflow can be called from another page or your navigation to open the calendar view page.
I got the error to go away by placing it in a List View instead of a Data View. This, however, results in the app creating a new calendar for each event instead of showing all events on one calendar. This is, I’m guessing, the nature of the “List View” (captain obvious). I can’t, however, find any success with other data object types
Does anyone have a fix for this?
In the Github repository: https://github.com/mendixlabs/calendar/releases there is a complete demo project. Download that one to see an example on how this works.