Hi All,
I am using below xml for the ADT:
="<project><developer slno='1' modelid='9124' modelname='Test Model - IVU Validation Report' status=' ' issueimacted=' ' /><developer slno='2' modelid='9078' modelname='Test Model - RR 26' status=' ' issueimacted=' ' /><developer slno='3' modelid='9079' modelname='Test Model 7 Sep' status=' ' issueimacted=' ' /></project>"
in Template:
Model Id
model name
Mail
«@before-row[#list doc.project.developer as d»«${d.@modelid}»«@after-row[/#list]»
«${d.@modelname}»
«${d.@status}»
It is throwing error as:
freemarker.core.NonStringException: For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), but this evaluated to a sequence+hash (wrapper: f.e.dom.NodeListModel):==> d.@name [in template "fr.opensagres.xdocreport.document.docx.DocxReport@31e4101f!word/document.xml" at line 4, column 2117]The failing instruction:==> ${d.@name} auto-escaped [in template "fr.opensagres.xdocreport.document.docx.DocxReport@31e4101f!word/document.xml" at line 4, column 2115]
The thing is I have not used ${d.@name} in my template anywhere. My syntax in template is like: «@before-row[#list doc.project.developer as d»«${d.@modelid}»«@after-row[/#list]»
Note sure why I am getting error for ${d.@name}. If I change my xml and use "name" instead of modelid it throw error for ${d.@lastEmail}, now these are the variables from the original templates. Not sure where I am missing the things. Please suggest.
Discussion posts and replies are publicly visible
Resolved - I was editing the template in wrong way. The field needs to be edit by doing right click-edit field and update the name as required.
can you share the xml and screenshots how to add in word file. It would be helpful