Event Calendar get date range, not working when linked to server connect

Hey,

I am very thankful the Wappler team was able to get this feature into the application for those of us who use the calendar!

So I am using the new feature: Event Calendar How to get the date range

I’m displaying the active/current dates from the calendar below (dates are in the top left):

When I scroll the calendar around, the date values update as expected:

Since this calendar is populated dynamically I’d like to use the active or current calendar dates to limit my query to only show the user what she needs to see.

So I go into my Server Connect query action and add the variables, current start and current end in this example:
image

On the back in the logic looks like this:

After saving, the page loads and the active/current dates from the calendar text value appear as expected:

When I scroll to next week however, the active/current calendar dates do not update:

Notice the calendar is Feb. 28 to Mar. 6 but the active/current date values do not change. I believe this may be a bug, but may also be this user’s error.

If this does turn out to be a bug, please let me know and I will happily complete a bug report.

When troubleshooting this, it seems that changing dates does not trigger the App Connect Server Connection query to get the new records.

In this video:

You can see that things work in a monthly view records display as expected. However in the weekly view records do not appear. I’ve also confirmed that within the inspector, the monthly view triggers SC queries while the weekly view does not.

@nepatriot I’m experiencing the same issue. If I click the next and previous buttons to advance to the next month, the active and current start and end dates don’t change and thus it doesn’t trigger the app connect query to update the results. It’s either a bug or you and I are misunderstanding how it works.

I’m going to go on a limb and say it’s a bug in the interest of getting this fixed since making a backend query that returns all date data is wasteful at best and makes the app super slow for the end user at worse.

I’ll go ahead and create the bug today and would appreciate your comment on it the bug in the interest of getting it fixed.

I agree. I’ll look for the bug to comment on.

@nepatriot did you create the bug? I thought I’d give it a shot in Wappler 4.0.0-beta.6 but still not working. Without this working it pretty much makes the calendar useless for what I’m trying to use it for.

Sorry, I totally got caught up in other work and am now revisiting this issue. Am going to do some testing to still is this issue persists.

@TwitchBlade are you still experiencing this? Any luck/workarounds?

This now appears to be working correctly.

My Server Connect action has a calendar start/end variables which are being passed to the backend call.

Every time, I change the calendar timeframe, it triggers a new back end call and the correct information is displayed on the front end.

Cool I’ll give mine a try when I get a chance and let you know.

SWEET!! Looks like it’s working now.

1 Like