I created two date and time fields on sharepoint to collect the times and date an employee has clocked in and out, on power apps I decided to remove them and add a clock in and clock out button with with a text input that would display the date and time an employee clicked on a certain button. That's all done now and I'm previewing the screen, I've added in some data. The issue now is on the detail screen the data collected aren't displayed and the clock in and out field is still visible but there is no input collected. Is there a way to collect the inputs from the the buttons to the clock in and out field. The buttons can just be visible on the editscreen, while the information can be viewed on the detailed screen with the date and times collected.
I had already removed both date field from the Edit Screen and added the both buttons to replace them. Would you suggest that I restore both date fields to achieve this because the only screen that displays the clock in and out field in the detail screen.
That's exactly what I want to do. The date fields/columns are from a SharePoint list.
just tried the solution and it's still not working, I checked the defaultdate on both fields on the detail screen cause that's the only screen that has both fields and within the drop down list there was no defauldate property on there, I restored the date&time fields on the edit form to check whether the defaultdate is correct and they are.
The two images below shows how the app looks like from the edit form and detail form.
As you can see it still doesn't display the clock in date.
Maybe it's the formula that I used for the button and the text input.
This is the formula used for the button:
If( vTime, Text( Now(), DateTimeFormat.LongDateTime ) )
Okay I just tried the Clock_in_datacardvalue to see whether it has the defaultdate and it still doesn't it's only the text property that has the Parent.Default formula in it.
Also how would I check that the time I saved is in the datasource. I got all fields directly from the datasource it was only the buttons and the text inputs that weren't from there, I created those directly from the app, would that be a reason why they aren't being displayed.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights