TTdbDataSet.OnResolveLink
TTdbDataSet   See also

Occurs when a link field has been changed to a value that cannot been resolved.

TResolveLinkEvent = procedure(Sender: TObject; FieldNo: Integer; LinkInfo: string; var RecordId: Integer; var Cancel: Boolean);

property OnResolveLink: TResolveLinkEvent;

Description
Write an OnResolveLink event handler to provide a custom procedure to find the record of the master table to link to. The handler is expected to set RecordId to the record id of the record in the master table that should be linked to the active record in the detail table. It can also set Cancel to True to prevent any linking from taking place.