Hi All,
I am following a Udemy course on building a timesheet using collections. I ran into an error that other students ran into and it hasnt been resolved:
This is the collection which is in the OnVisible property of the page:
Reset(cmbApprover); Reset('selected Week');
ClearCollect(colTimesheetDetails,First('Timesheet Details')); Clear(colTimesheetDetails);
ForAll([6,5,4,3,2,1,0],
Collect(colTimesheetDetails,
{
'Employee Email' : varUser.Email,
'Week End' : DateValue(lblWeekEnd.Text),
WeekEndNum : Text(DateValue(lblWeekEnd.Text),"yyyymmdd"),
'Day of Week' : DateValue(lblWeekEnd.Text)-Value,
DayofWeekNum : Text(DateValue(lblWeekEnd.Text)-Value,"yyyymmdd"),
'Day Start' : {value: "8:30 am"},
'Lunch Start' : {value: "12:00 pm"},
'Lunch Finish' : {value: "1:00 pm"},
'Day End' : {value: "5:00 pm"},
'Break Hours' : 0,
'Paid Hours' : 7.5,
'Approval Status' : {value : "In Progress"},
'Overtime Hours' : 0,
'Work Day' : {value : "Work Day"}
}
))
This is the patch formula giving an error:
Patch(colTimesheetDetails,ThisItem,{'Day Start': ddDayStart.Selected.Value})
The errors and sharepoint list setting can be found in the attached images.