
Announcements
Love Aprils app, but have one issue where you click the + item to add new item to collection it blanks out previous item
seems fine when adding new item (Collection = newTimeEntry) , only with edit item (Collection = selectedTimeEntries)
i think anyone using this template will have this issue, hoping there is a simple fix
thank you in advance (added screenshot)
| ONSELECT - New form | ONSELECT - Edit Form |
| Select(Parent); Patch( newTimeEntry, ThisItem, { Employee: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & currentUser.Email, Department: "", DisplayName: currentUser.FullName, Email: currentUser.Email, JobTitle: "", Picture: "" }, BillTo: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id: cbBillTo.Selected.ID, Value: cbBillTo.Selected.Title }, Mon: Value(tbMon.Text), Tues: Value(tbTues.Text), Weds: Value(tbWed.Text), Thurs: Value(tbThurs.Text), Fri: Value(tbFri.Text), Sat: Value(tbSat.Text), Sun: Value(tbSun.Text), Comments: tbComments.Text } ); Collect( newTimeEntry, { Employee: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & currentUser.Email, Department: "", DisplayName: currentUser.FullName, Email: currentUser.Email, JobTitle: "", Picture: "" }, BillTo:Blank(), Mon: 0, Tues: 0, Weds: 0, Thurs: 0, Fri: 0, Sat: 0, Sun: 0, Comments: "" }) | Select(Parent); Patch( selectedTimeEntries, ThisItem, { Employee: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & currentUser.Email, Department: "", DisplayName: currentUser.FullName, Email: currentUser.Email, JobTitle: "", Picture: "" }, BillTo: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id: cbBillTo.Selected.ID, Value: cbBillTo.Selected.Title }, Mon: Value(tbMon_1.Text), Tues: Value(tbTues_1.Text), Weds: Value(tbWed_1.Text), Thurs: Value(tbThurs_1.Text), Fri: Value(tbFri_1.Text), Sat: Value(tbSat_1.Text), Sun: Value(tbSun_1.Text), Comments: tbComments_1.Text } ); Collect( selectedTimeEntries, { Employee: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & currentUser.Email, Department: "", DisplayName: currentUser.FullName, Email: currentUser.Email, JobTitle: "", Picture: "" }, BillTo:Blank(), Mon: 0, Tues: 0, Weds: 0, Thurs: 0, Fri: 0, Sat: 0, Sun: 0, Comments: "" }) |
Two options