Page 1 of 1

Printing childern twice

Posted: 2022-10-27 23:24
by AhmedBR
Hi,

I have a table with children, I need to repeat the children rows in DPV template.
(print them twice under the detail view of parent).

Any direction on how to do that?

Thanks.

Re: Printing childern twice

Posted: 2022-10-30 01:31
by AhmedBR
Figure it out, in case some one look for this in the future, just use: document.getElementById, innerHTML and appendChild.
Basically cloning the table and appending it to the last element of the html.

If you find a better way please let me know.


Thanks