Hi All, I am confused about the coding on the OnAfterGetRecord Trigger with the modification of the rec table.
First I wrote a function called CopyQtyFromContainer on a page, Then Call that function on the ‘onAfterGetRecord’ Trigger, But I got such error :You can not make any changes in the table until a transaction has been started .
Below are my code of the function CopyQtyFromContainer
ContainerItem.SETRANGE(“Document No.”,“Document No.”);
IF ContainerItem.FINDSET THEN BEGIN
// Rec.Modify(true); It is no work neither for this code.
Anyone whoelse can explain this for me?
Any suggestion will be appreciated. Thanks in advance.