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

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 Partisan
Post Partisan

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 Partisan
Post Partisan

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 Partisan
Post Partisan

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 Partisan
Post Partisan

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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