Thank you for taking the time to read my question.
I have a gallery with Text Inputs as a form. If the user starts, but does not complete the "form" they can use the back button and the values entered will be saved to a collection. If they then come back to the screen, the gallery Text Inputs are populated with the values from the collection and they can complete the fields. Once complete the save icon becomes usable and the data in the Text Inputs is Collected to a SharePoint List. Then if there are no errors, I clear the Collection of the partially completed record and start a new one so that the gallery has a record to show.
It was working but now when we save the screen just has the 3 dots moving left to right and the screen is a gray color and stays there. If I use the Monitor, I get no errors.
Any ideas on how to make this work again?
Thanks!
Here is my code for the save action:
If(
IsEmpty(
Errors(
Collect(
PelletingRecord,
{
Title: SelectedFacility.Text,
PelletingLine: SelectedLine.Text,
LotNumber: tiLotNumberPel.Text,
TextureAndSize: Text(ddTextureAndSizePel.Selected.Value),
ProductCode: tiProductCodePel.Text,
ProductName: LookUp(
Products,
Title = tiProductCodePel.Text
).ProductName,
CustomerName: tiCustomerNamePel.Text,
Tonnes: Value(tiTonnesPel.Text),
PrePBinNum: tiPrePBinNumPel.Text,
LiquidsRequired: tiLiquidsRequiredPel.Text,
LiquidsActual: tiLiquidsActualPel.Text,
DownStreamKG: Value(tiDownStreamKGPel.Text),
PorkMealYN: togPorkMealYNPel.Value,
ManualDieFlushYN: togManualDieFlushYNPel.Value,
SpeedHz: Value(tiSpeedHzPel.Text),
ConditionerTempF: Value(tiConditionerTempPel.Text),
PDIPercent: Value(tiPDIPel.Text),
StartTime: DateTimeValue(
Concatenate(
Text(dpStartDatePel.SelectedDate),
" ",
If(
Value(ddStartHourPel.SelectedText.Value) > 11,
Text(Value(ddStartHourPel.SelectedText.Value) - 12),
ddStartHourPel.SelectedText.Value
),
":",
ddStartMinutePel.SelectedText.Value,
If(
Value(ddStartHourPel.SelectedText.Value) > 11,
" PM",
" AM"
)
)
),
StopTime: DateTimeValue(
Concatenate(
Text(dpStopDatePel.SelectedDate),
" ",
If(
Value(ddStopHourPel.SelectedText.Value) > 11,
Text(Value(ddStopHourPel.SelectedText.Value) - 12),
ddStopHourPel.SelectedText.Value
),
":",
ddStopMinutePel.SelectedText.Value,
If(
Value(ddStopHourPel.SelectedText.Value) > 11,
" PM",
" AM"
)
)
),
RunTime: lblRunTimePel.Text,
LoadOutBinNumber: tiLoadoutBinPel.Text,
PelletingComments: tiCommentsPel.Text,
OperatorsInitials: tiOperatorInitialsPel.Text,
Medication: Text(
Concat(
Filter(
colPelMed,
Facility = SelectedFacility.Text,
Line = SelectedLine.Text
),
Med & ","
)
),
ReportedDate: DateTimeValue(
Text(
Now(),
"[$-en-US]yyyy-mm-dd hh:mm:ss AM/PM"
)
),
TimeZoneOffset: -TimeZoneOffset(Now()),
Hardness: Value(tiHardnessPel.Text)
}
)
)
),
Notify(
"Pelleting Record Saved",
NotificationType.Success
),
Notify(
"Save Record action failed.",
NotificationType.Error
)
);
If(
IsEmpty(Errors(PelletingRecord)),
RemoveIf(
colPelletRecords,
Facility = SelectedFacility.Text,
Line = SelectedLine.Text
)
);
If(
IsEmpty(Errors(PelletingRecord)),
RemoveIf(
colPelMed,
Facility = SelectedFacility.Text,
Line = SelectedLine.Text
)
);
If(
IsEmpty(Errors(PelletingRecord)),
Collect(
colPelletRecords,
{
Facility: SelectedFacility.Text,
Line: SelectedLine.Text
}
)
);
Set(
varProdNamePel,
""
);

Report
All responses (
Answers (