Azi
09/07/2022, 11:04 PMrec.removeLine
passing it getCurrentSublistIndex
as the line value sometimes gets an error, particularly if it was an uncommitted inserted line in at the end of a sublist (in the UI the remove button would be disabled)
Is there any programmatic way for me to know if a line is removable? If it is not removeable I would want to just cancel the lineec
09/08/2022, 12:06 AMAzi
09/08/2022, 2:25 AMAzi
09/08/2022, 2:26 AMMike Robbins
09/08/2022, 12:46 PMtry/catch
? Pseudocode:
try {
removeLine(lineId);
} catch () {
cancelLine();
}
Azi
09/08/2022, 1:47 PMAzi
09/08/2022, 1:47 PMAzi
09/08/2022, 2:10 PM