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
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.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,859)