Header/ Detail Form : Delete details from Header view

  • 2 November 2018
  • 1 reply
  • 11 views

Badge +4

Hi,

 

I have two list views. One is for master and another is detail.

Master view has a 'Delete' button.

 

My requirement is :

Select one master record and then on pressing the 'Delete' button

 1. First , I  want to delete details of that selected master

2. then, delete that master.

 

Thanks with Regards,

JD


1 reply

Userlevel 5
Badge +13

I think the easiest way to accomplish this would be to write a stored procedure capable of deleting a master record and all of its children in one call. You would invoke this stored procedure when you click the Delete button, and then refresh the master list.

Reply