I am trying to create the same example of Orders- Order detail.
I did it on my custom module which is Contract and Contract Line item.
The problem is when you are adding contract line item from contract dialog, on save event, Contract Id(which is the foreign key) is null, it is not deriving automatically from parent table Contract.
Any idea please? Thank you so much.
You need override your save behavior in contract repository for create identity. Try set field in this override.
private class MySaveHandler : SaveRequestHandler<MyRow>
{
protected override void SetInternalFields()
{
base.SetInternalFields();
Row.OrderID = yourId;
}
}