I have a conventional master/detail setup where the master Add form allows you also to enter new detail records.
I also want to add some other calculated field data into the detail records.
I assumed I would do this in the Row_Inserting server event for the detail table.
However a simple test using..
// Row Inserting event
function Row_Inserting(?BaseEntity $oldRow, BaseEntity $newRow): ?bool
{
$newRow['Notes'] = 'Test note';
return true;
}
.. does not produce anything at all in the 'Notes' field of the detail table record.
What am I missing?