...
Example 11 - copy custom field
Copy a custom field from a project task to all subtasks whenever the project task is saved
This requires that the custom field is marked as "show in app". We assume that the custom field has id=321.
if this.tasktype != 4 && this.parenttodo == 0
subtodos = this.subtodos
if isarray(subtodos)
for id in subtodos
todo = Microbizz.GetTodoByID(id)
todo.sv("custom321", this.custom321)
todo.save()
Example 12 - copy custom field
Known problems
1)
If an array holds a dict as an element, then accessing an element in the dict using eg.
...