Call parent page from modal dialog dynamically, but how ?
Method 1: Create one non-database item; for that item value, send the source page no from calling page. Then create one branch after page processing time, now page no should be your non-database item. Below for the reference
Method 2: For every calling page have to create individual branch for send parameters to parent page.