User Tools

Site Tools


en:raisedevents_onbeforespkmodifyrecord

eeRis Sprinkler v.19.4
for Microsoft Dynamics 365 Business Central v.19.x

<HTML><H3>OnBeforeSpkModifyRecord</H3></HTML>

OnBeforeSpkModifyRecord(SourcePeer: Guid; TargetTable: Integer; var RecRef: RecordRef; xRecRef: RecordRef; var Handled: Boolean; var ErrorMessage: Text[50]; var PanicButton: Boolean)

  • This Event will be raised before the modification of xRecRef record into RecRef record, from TargetTable table, as requested by SourcePeer Peer
  • The subscriber code can modify RecRef (for example, modifying a field); the modified record will match to RecRef.
  • If Subscriber code set Handled to TRUE, Sprinkler will assume theat the operation has been done by the Subscriber; Sprinkler execution will continue raising OnAfterSpkModifyRecord Event.
  • If Subscriber code set ErrorMessage different from empty string, the record will NOT be modified, and corresponding Entry will be moved into Data Distribution Import Error table, with Error code M-EVENTERR and Error Message corresponding to ErrorMessage. WARNING: Sprinkler operations will continue to next Entry.
  • If Subscriber code set PanicButton to TRUE, Sprinkler operations will be stopped: the actual Entry will stay in Inbox, and ErrorMessage will be logged into Sprinkler Log. To restart Sprinkler activity it is needed to correct the error, or delete the Entry from Inbox table; in both cases, Sprinkler will restart in one minute.
  • WARNING: if a Subscriber raises a not handled error, the Modify operation will be rolled back; the Error Message will be logged into Sprinkler Log and the operation will be repeated in one minute.
en/raisedevents_onbeforespkmodifyrecord.txt · Last modified: 2022/03/04 23:46 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki