I am new to this and when they go to copy, I want the original line to be saved to the collection. Here is the Save formula;
Patch(
RequestCollection,
ThisItem,
{
PerDiemDate: dtePerDiemDate.SelectedDate,
Location: txtLocation.Text,
PerDiemRate: Value(txtPerDiemRate.Text),
JobName: cmbJobName.Selected.JobName,
Notes: txtNotes.Text,
TravelDay: drpTravelDay.Selected.Value,
Reimbursement: Value(txtReimbursementCalculated.Text),
CompanyHousing: drpCompanyHousing.Selected.Value,
CompanyCar: drpCompanyCar.Selected.Value,
ShowSaveButtons: false
}
);
If(
EditPressed,
false,
Collect(
RequestCollection,
{
PerDiemDate: "",
Location: "",
PerDiemRate: 0,
JobName: "",
Notes: "",
TravelDay: "",
Reimbursement: 0,
CompanyHousing: "",
CompanyCar: "",
ShowSaveButtons: true
}
)
);
UpdateContext({EditPressed: false});
Set(
NeedsSubmit,
false
)
How would I go about this?