IF LogInteraction THEN IF NOT CurrReport.PREVIEW THEN BEGIN IF "Bill-to Contact No." <> '' THEN SegManagement.LogDocument( 4,"No.",0,0,DATABASE::Contact,"Bill-to Contact No.","Salesperson Code", "Campaign No.","Posting Description",'') ELSE SegManagement.LogDocument( 4,"No.",0,0,DATABASE::Customer,"Bill-to Customer No.","Salesperson Code", "Campaign No.","Posting Description",''); END;
Answers
If you check the code for this report, you will find in "OnAfterGetRecord" Trigger of Sales Invoice Head DataItem:
Same way for DisplayAssemblyInformation as well.
Thanks