Script for fetching the values for a child table from another child table

The add_fetch method is unsuccessful for fetching the values for a child table from another child. Any one please share the script for such type of scenarios.

Check this link :