how can I can launch the "edit record" window ( on a view) with a custom actions?

how can I can launch the "edit record" window ( on a view) with a custom actions?

Hi,

I would like to launch the "edit record" window ( the window who appears when we click on "edit" on a view) by click on custom actions.

How can write the functions to launch this windows?

Thank you
Regards.