Master Detail form issue on delete

Hi All,

I have sent this to support, but thought I would ask here as well -

Problem -
I start with a grid of records. I click on the “pencil” edit icon and open up my master detail form. It correctly displays the mater record and the detail records.

Initially, when I clicked on the delete button, the record (master and detail) are deleted, but the form stays open and blank. I do not want the form to remain open, so I added a sc_redir(back to the grid app) in the after delete event. This time it does send me back to the grid (which is what I wanted) but it does not delete the master record, only the detail ones.

I am doing something wrong?

Thanks

Tony