W
Wim
Guest
Hello, I followed your suggestion, but the trigger is running on the orderlines of the order that i clone, and not on on the cloned order / orderlines So the trigger is not aware of that i first clone the order record (and from the mapping cloning the orderlines) The clone orderlines need to have an negative quantity. Regards, WIm Van: mpiscoso@gmail.com [mailto:bounce-mpiscosogmailcom@community.progress.com] Verzonden: maandag 21 november 2016 17:23 Aan: TU.Rollbase@community.progress.com Onderwerp: RE: [Technical Users - Rollbase] Cloning a record Update from Progress Community mpiscoso@gmail.com Ah, I see what you mean now, the change needs to happen on the children and not the parent. 1. On the child object, create a update field value trigger without any timing that changes the value that you need to change. (e.g. change qty to negative) 2. On the parent object, create a "run triggers on related records" trigger without any timing - choose your child object in the picklist. Attach this trigger to your workflow action so it runs only at the time the workflow is pressed (assuming you use a clone workflow action - if you are not, you need to be to use this method). 2.1 If you aren't using a workflow action, you need to create a trigger that iterates through all of your child record and calls runTrigger() on each on them to run the trigger in #1 (i prefer the "run triggers on related records" approach since it is more streamlined and less prone to code issues unlike this one). Hope this helps. View online You received this notification because you subscribed to the forum. To unsubscribe from only this thread, go here . Flag this post as spam/abuse.
Continue reading...
Continue reading...