Writing Child doc info of same Parent doc info , using for loop from javascript.
Opened Parent doc using get_doc
Opened Child doc using new_doc
Append Child doc to Parent doc
Save Parent doc
Above works fine, if send Child info for different Parents from js.
But only one Child doc info get written, if send multiple Child doc info for same Parent.
what if there’s a restriction on doing it from js only, whats the other option?
lets say the call is made to update the same doctype multiple times, whats the way to achieve this?