10,730
edits
(→Install Resco extension on Business Central: link to v2 extension) |
|||
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: |