Update response doc fields from main doc through view

i have created two forms having same fields one is document and another is response for the parent doc… i have created a button in view which compose the response doc on selection of a particular doc… now i want a help code which can displays my data from main doc to response doc