You must add the appropriate Insight code changes to the codeunit design. Carefully editing codeunit 1 can preserve any changes that may have already been made to it.
The file COD1.txt resides in the NAS working directory subfolder that holds the Dynamics NAV localization, database version, and build, for example: ..\Microsoft Dynamics NAV\60\Application Server\ScribeModifications\W1.6.02.32012.
To edit the codeunit, use the .txt file that matches your version of Dynamics NAV. Dynamics NAV suggests that you review COD1.txt before editing codeunit 1.
To edit codeunit 1
Global trigger functions must have these local variables. If necessary, edit the functions to include the necessary variables.
Name | DataType | Subtype | Length |
---|---|---|---|
ScribePublisher | Codeunit | Scribe Publisher |
'SCRIBE':
CODEUNIT.RUN(CODEUNIT:: "Scribe Adapter Hooks");
GetGlobalTableTriggerMask(TableID : Integer) : Integer
Add:
EXIT(ScribePublisher.GetTableTriggerMask(ChangeLogMgt.GetTableTriggerMask(TableID),
TableID));
OnGlobalInsert(RecRef : RecordRef)
Add:
ChangLogMgt.LogInsertion(RecRef);
ScribePublisher.PublishInsertion(RecRef);
OnGlobalModify(RecRef : RecordRef;xRecRef : RecordRef)
Add:
ChangLogMgt.LogModification(RecRef,xRecRef);
ScribePublisher.PublishModification(RecRef,xRecRef);
OnGlobalDelete(RecRef : RecordRef)
Add:
ChangLogMgt.LogDeletion(RecRef);
ScribePublisher.PublishDeletion(RecRef);
OnGlobalRename(RecRef : RecordRef;xRecRef : RecordRef)
Add:
ChangLogMgt.LogRename(RecRef,xRecRef);
ScribePublisher.PublishRename(RecRef,xRecRef);
Note: In the Object Designer, in the Version List column, edit the Release Sales Document codeunit's version to reflect the new revision level.
See also
Editing the codeunits — Dynamics NAV 2009 R2