cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

Anyone can advise?? How to update - patch back date picker ???

hi

 

I need to update changes on the date picker when selected.. but it is not patching back to SP list.

 

Patch('list',ThisRecord,{Description: TextInputDes.Text, Date:DatePicker1.SelectedDate }))

 

Thanks.

2 REPLIES 2
RandyHayes
Super User
Super User

@bbsin 

Please consider changing your Formula to the following:

UpdateIf('list', ID=ThisRecord.ID, {Description: TextInputDes.Text, Date:DatePicker1.SelectedDate }))

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi @RandyHayes

 

Thank you for your response

 

I have a question, this syntax does work but ThisRecord,ID..

 

When I edit and patch one duplicate record and submit, it changes all the rest of the same duplicated records too?

10 May - Des 1

10 May - Des 2 - need to change to 9 May

10 May - Des 3 - need to change to 8 Apr

 

when I input 9 May and Des May - all three changes become 9 May and Des May.

 

I just want to changes the selected row of records that is been edited.  not the rest of the records

Can you kindly advise?  Thanks.

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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 (2,958)