Master Detail Table with Different Foreign Key

When master detail grid foreign keys don’t have the same name, you should use SQL alias. See Remark on

It's also recommended that the foreign key is displayed in detail grid during editing. Make sure to read this KB to edit master detail grid that uses SQL alias

Feedback and Knowledge Base