as for the use case?
those built-in NetSuite actions at the top of a transaction (such as Save, Delete, Memorize, Cancel Order), those are just callback functions you can find the code for in
view-source:https://[...]
.
im redefining those functions to do custom actions without doing a custom action. just food for thought