Pulling records into a child table


I have added a custom document type to add design change notice functionality. I have added a table to the form to list the affected items. I tried linking this to the “BOM Item” child form as this is exactly the functionality I require, but this just causes the DCN form to crash when I try to add a row.

I have therefore created a new child document type for the table. I have copied the configuration for the first two items in the BOM Item form item_code and item_name. When I add a row to the DCN I can correctly choose and save the item_code. However I can’t get the item_name to populate based on the item_code.

Any ideas how to go about this?



Can you share your code snippet via gist.github.com or similar.