Issue in Docx from Dynamic template

Certified Associate Developer

Hello,

I am using DocxFromDynamitecTemplate smart service for generating the dynamic table in  Docx file from given template.

but i am getting the only column names, data is not populating in the table.

Here is the xml data that i am passing  in a script task.

concat(
    "<info><row><name>",
   toHtml("John Samuael"),
    "</name><branch>",
tohtml("CSE"),
      "</branch><rollNo>",
    toHtml("abc"),
    "</rollNo>
	</row><row><name>",
   toHtml("Michelle Dsouza"),
    "</name><branch>",
tohtml("IT"),
      "</branch><rollNo>",
    toHtml("fgh"),
    "</rollNo>
	</row></info>"
  )

Template file:Test_Template_new.docx

generated file:

Generated dynamic document11122019 (2).docx

Process model:

Please suggest some solution,for dynamic row generation in table in document or suggest any alternate for this.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Emily Egan

    If I replace the apostrophe's(') with &apos;  then i get the error:

    Open quote is expected for attribute "name" associated with an  element type  "rowvalues".

    and if I continue with the apostrope(') ,then i am getting the error:

    Parsing error in template "fr.opensagres.xdocreport.document.docx.DocxReport@7d2a84be!word/document.xml" in line 4, column 998:Encountered "<", but was expecting:    <ID>

Children
No Data