Business Central: Difference between revisions

Jump to navigation Jump to search
Line 111: Line 111:
         }
         }
     }
     }
    trigger OnAfterInsert()
    begin
        Rec.RowVersionNumber := GetRowVersionNumber(Rec);
        Rec.Modify(false);
    end;


     trigger OnAfterModify()
     trigger OnAfterModify()
Line 126: Line 131:
         RowVersion := RecRef.Field(0).Value();
         RowVersion := RecRef.Field(0).Value();
     end;
     end;
}
}</syntaxhighlight>
</syntaxhighlight>


Second step is to add this custom field to your Page/new Page:
Second step is to add this custom field to your Page/new Page:

Navigation menu