typescriptasp.net-coreserenity-platform

Serenity-Platform - Order Details tab is not taking Order ID


I am trying to create the same example of Orders- Order detail.

enter image description here

I did it on my custom module which is Contract and Contract Line item.

enter image description here

enter image description here

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.

enter image description here

Any idea please? Thank you so much.


Solution

  • 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;
            }
        }