I'm trying to build a timesheet tracker, which saves its data to a csv in SharePoint. I have a collection called NewTimeEntries, which is attached to a gallery. Within the gallery are multiple dropdowns and input fields. The issue I run into is when trying to import data back into the collection/gallery. When I import the csv data back into the collection, the gallery doesn't update. However, I can see that the collection NewTimeEntries is successfully updated with all the correct information. I'm unsure how I can get the gallery to update/refresh to have the dropdowns and input fields repopulate with the information in its collection.
This is the function used on a button to import the csv data and update the collection:
ClearCollect(
NewTimeEntries,
ForAll(
Table(ParseJSON(Timesheets_Import.Run(CurrentUser, FileName).response)),
{
Customer: Text(Value.Customer),
SupportAgreement: Text(Value.SupportAgreement),
SupportType: Text(Value.SupportType),
Billable: Text(Value.Billable),
Mon: Value(Value.Mon),
Tue: Value(Value.Tue),
Wed: Value(Value.Wed),
Thu: Value(Value.Thu),
Fri: Value(Value.Fri),
Sat: Value(Value.Sat),
Sun: Value(Value.Sun)
}
)
)
I've attached two screenshots. One is of my collection after using the import button and it gets updated. The other is of the gallery. You'll notice that a second entry is added by no information is populated from the collection.
Any help would be appreciated since I'm very new to this!