calendar component not respecting date range boundary conditions for currently visible month, week, day

  • 1
  • Problem
  • Updated 1 year ago
According to Zach McElrath's comment at the bottom of this post, the calendar component should query my event source models "after applying appropriate boundary Conditions on the StartDateTime and EndDateTime fields (e.g. so that only Event records for the currently visible Month / Week / Day will be pulled in)"...as long as I uncheck "Load Model on Page Load" and query my event source models through an action on the page.

However, I am currently loading my models through an action on the page (not on page load) and yet my calendar component is not respecting the boundary conditions of the currently visible month, week, day.

I'm getting an Apex Heap size too Large error message, unless I manually apply some conditions to the event source models which can be set through a filter set button.

Doable, but this creates a less-than-ideal UX where the user has to filter the date range of the model(s), in addition to setting the currently visible month, week, day.

Photo of Conlan O'Rourke

Conlan O'Rourke

  • 3,280 Points 3k badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
You certain that the SOQL is malformed? Could it be that there are that many records in the model after the action post page load? Check the console for SOQL.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Could be that one of the other conditions isn't set.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Do you have any other conditions on the associated models? I'd set the model limit to 1 so you can subsequently load the page in order to view the SOQL
Photo of Conlan O'Rourke

Conlan O'Rourke

  • 3,280 Points 3k badge 2x thumb
Hmmmm...tried that but not seeing anything in the console...