Master Detail Add from List

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
dquinlan
User
Posts: 27

Master Detail Add from List

Post 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?


mobhar
User
Posts: 11660

Post by mobhar »

You may try:

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

Adjust YourFieldName to your actual field name in master table.


dquinlan
User
Posts: 27

Post by dquinlan »

Thanks, where should that go?


mobhar
User
Posts: 11660

Post by mobhar »

As you mentioned in first post above: Row_Inserting.


Post Reply