View source for OCLOperators OnUpdate From MDrivenWiki ← OCLOperators OnUpdate OCLOperators OnUpdateYou do not have permission to edit this page, for the following reason: The action you have requested is limited to users in the group: Users. You can view and copy the source of this page. OnUpdate is called just before the object is saved to the database. You can do things needed on every save operation here. '''Please note!''' You can't create new objects from within the OnUpdate action - that will leave the newly created object unsaved. For example, in the method body for OnUpdate, set this OCL: if self.existing then -- This avoids touching the object if it has been deleted self.ChangeTime:=DateTime.Now; false else false endif See more: [[Acting on object changes]], [[OCLOperators IsDirty|IsDirty]] See also: [[OCLOperators OnCreate|OnCreate]], [[OCLOperators OnDelete|OnDelete]], [[OnStateChange]] [[Category:OCL General Operators]] Return to OCLOperators OnUpdate. Retrieved from "https://wiki.mdriven.net/index.php/OCLOperators_OnUpdate"