Insert parent and child records using 1 table

It’s possible for sure using javascript. Might even be able to do it using only action framework. Your scenario needs more explanation though.