cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Greg68
Helper II
Helper II

Refresh or reset calendar in canvas app to show Today() date

Hello everyone,

 

I have an app that patch to SharePoint list, including a calendar (Date Picker) selection menu, this calendar I set it to select Today() by default, but if the user keep the application open, the calendar won't show the today date, and so the patch will take the date that is selected in the calendar.

 

Is there a way to refresh this calendar (Date Picker) or reset it to show today date.

 

I need it to be selectable, as the user may need to patch with a different date.

 

So how to reset this calendar each hour maybe,  to Today()

 

Thanks for all

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

Here are a couple of ways you could handle this:

  1. If it fits with your user experience, reset the datepicker immediately after each Patch()
  2. If you want to reset it once per hour, hide a auto-starting timer control in the app set to 3600 seconds, with a Reset() for the datepicker in the behavior property

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
BCLS776
Super User
Super User

Here are a couple of ways you could handle this:

  1. If it fits with your user experience, reset the datepicker immediately after each Patch()
  2. If you want to reset it once per hour, hide a auto-starting timer control in the app set to 3600 seconds, with a Reset() for the datepicker in the behavior property

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Greg68
Helper II
Helper II

Thanks it works by resetting the Date Picker after the patch!

 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,663)