Get data from a Doctype into another Doctype's table

Perhaps this can help you.