This sample (16.4 KB) shows how java script is implemented in a DocX template.
-
Basic java scripting
-
Parsing in parameters to a function
-
Populating the table
-
Rendered values from java scripting, script7 was a summation of values 2 and 7