Page 1 of 1

Master Detail Add from List

Posted: Fri Mar 17, 2023 1:46 pm
by dquinlan

I have two tables with a Master Detail relationship: invoices and invoice_items

When the Add detail record is initiated from the List page of the Master record I want to pass a Master record field value through to the Detail Add Row_Inserting event.

I have tried to store the field to a Session variable in the Row_Selected event of the Master record but it seems this event is not fired when the detail Add is initiated from the Master List.

Is there a way of doing this?


Re: Master Detail Add from List

Posted: Fri Mar 17, 2023 3:00 pm
by mobhar

You may try:

Container("invoices")->YourFieldName->CurrentValue;

Adjust YourFieldName to your actual field name in master table.


Re: Master Detail Add from List

Posted: Fri Mar 17, 2023 3:45 pm
by dquinlan

Thanks, where should that go?


Re: Master Detail Add from List

Posted: Fri Mar 17, 2023 4:21 pm
by mobhar

As you mentioned in first post above: Row_Inserting.