Hi All,
We have modified a page in BC with a new field. I have a Description3 and Description.
I would like - if Description <> '' and Description3 = '' then Description3 = Description
Currently I am doing this on a Trigger OnOpenPage - but I recognize that this is problematic if many users are accessing the same page :S. Does adding a setfilter make this better? Please see below
trigger OnOpenPage() begin rec.SetFilter("Document Type", '%1', rec."Document Type"::Order); rec.SetFilter("Document No.", rec."Document No."); repeat if (rec.multiLineDescription = '') and (rec.Description <> '') then begin rec.multiLineDescription := rec.Description; rec.modify(); end; until rec.next = 0; end;
Thank you in advance!