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

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 III
Helper III

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

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,001)