I create a doctype name TCB in this doctype i want table with 3 column Description, Details and Remark
If have description 4 Like - Distance, Weight, Height, Length,
so when i create new TCB the i have to see table with these 4 row only i have enter details and remark in each row
You can add the client script, use the refresh event to add a row in the child table, but only if the document is new.
@Mack
Make a Template doctype in that specify that table data that you want in the TCB Document, and then on the loading of the TCB Document make the template default and fetch the data from that template.
By doing this way, no need to change the code we can change template itself.
1 Like