How to trigger copy function to display a drawer with the parent values on the drawer after save on sidecar ?

What I am trying here is to replicate  copy function that run from the click on copy. is that possible ?