[progress Communities] [progress Openedge Abl] Forum Post: Re: Cloning A Record

  • Thread starter Thread starter mpiscoso@gmail.com
  • Start date Start date
Status
Not open for further replies.
M

mpiscoso@gmail.com

Guest
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.

Continue reading...
 
Status
Not open for further replies.
Back
Top