onExit Event needed

It will be nice to have a an onExit event, when the exit button is click

+1

also it would be nice to have an sc macro to trigger a refresh of a grid from a modal form open by the grid
the scenario is:

  • form is open modal from a grid, to edit a grid record
  • in the form some custom code perform a change to the db, but there’s no change to the form record that is detected by SC
  • the user exit the form without saving it (no change in the form so no warning to save data)
  • the grid is not refreshed\reloaded, thus it doesn’t reflect the db changes

to be sure the grid is updated on the form exit, now i have to inject a js function into its exit button.
this js function will trigger what SC does to the grid when the form is updated.
i.e. run:

parent.nm_gp_submit_ajax(‘igual’, ‘breload’);