cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
twister
Post Patron
Post Patron

date save into collection

Hi, how do I cater for my below case?

 

I have input date to patch into collection. The DefaultDate property I have set to Now() to get current date. The issue if after I Patch to collection, the invoice date will display to default current date.. How do I to display the date that I have selected before save to collection?

 

For below case, I have already select 1/3/2021 for my invoice date..

 

In Collection:

twister_1-1617023634077.png

But still display current date after patch..

 

twister_0-1617023559776.png

Thanks

17 REPLIES 17
Bilakanti
Responsive Resident
Responsive Resident

@twister ,

 

Are you resetting your Datepicker control, after patching it into collection?

twister
Post Patron
Post Patron

Not reset after patch

Bilakanti
Responsive Resident
Responsive Resident

@twister ,

I have reproduced your scenario and it's working fine me. I have taken a simple datepicker control and stored the selected date in collection, and shown the collection items in gallery. And on click on collect button, it collects the selected date into collection. The catch here is the datepicker control still shows the user selected date. Below is the screencapture.

Bilakanti_0-1617028481491.png

 

twister
Post Patron
Post Patron

after patch, here is my next action..

twister_0-1617029427533.png

 

Try to implement as yours but error..

 

twister_1-1617029496276.png

 

Bilakanti
Responsive Resident
Responsive Resident

@twister 
invoicedate:DatePicker1.SelectedDate, but you have added it as just selected that's why it's showing syntax error.

twister
Post Patron
Post Patron

its same..

twister_0-1617029740213.png

 

Bilakanti
Responsive Resident
Responsive Resident

@twister ,

 

can you help on showing me, what is the error that you are getting, in the screenshot I can't see what is the actual reason for those red underlines.

twister
Post Patron
Post Patron

this error sir..

twister_0-1617064645134.png

 

Bilakanti
Responsive Resident
Responsive Resident

Are you using the same collection anywhere with some other value/different datatype for invoicedate?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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