Fetch values from a child table to another child table Example

I see “Fetch values from a child table to another child table” from GitHub, but there is not examples to understand the case.

Could you show me the example code for this case?

@Duc_Nguyen

It is something like you have prepared some template with multiple value in child table and you want all the values from that child table into different document once you select that template.

Like [Journal Entry Template] where you can add accounts in child table and same this template you can select while creating JV which will prefill account table from this template.