Update Subform items based on main form status
I am working on a deluge script to update the status of a subform ( "Samples"). The individual items have a "Status" that should be updated when the main form "Status" is updated. I have set up the workflow as a conditional workflow that executes only when the main form Status == Returned. When this happens it should update the Subform Sample Status for all items as returned.
- for each rec in input.Samples.Status
- {
- input.Samples.Status = "Returned";
- }
This is what I have been attempting. I am getting zero errors but also it is not updating the subform as expected. Any assistance would be greatly appreciated.
Thank you in advance
Thomas