Hi All
I have a page designed look like below:-
Piece | Weight
1 | 2.12
2 | 6.21
3 | 7.22
If user delete the second line (2 | 6.21), I would like to write my own code to auto. re-arrange the data like:-
Piece | Weight
1 | 2.12
2 | 7.22
I cannot use OnDelete() event because it triggered before the deletion.
Is this any Event / Trigger (something like OnAfterDelete()) I can use to do that?
Thanks
0
Comments
In the OnDelete trigger you know what record is about to be deleted ( that is: the record that is the current record in the OnDelete trigger), so you can make the process you want to execute (in this case the renumbering) skip that record.
(It can also be used in the OnInsert() and OnModify() triggers with a few adjustments)
Peter
Peter
Sorry for my late reply.
All methods suggested in this post created an unexpected result.
It might be the key I used in this table ("Document No.", "Line No.")
Anyways, thanks a lot for all helps.
I end up created an ActionItem that allow the user to "Rearrange the order".