Hello All,
I have an XML generated and based on a valid XML tag I need to display the data.
«[#if doc.xml.A1 == "true"]»
«@before-row[#list doc.xml.good.A2 as l]«${1}» «@after-row[/#list]»
«[#else]»
«@before-row[#list doc.xml.good.A3 as l]»«${1}» «@after-row[/#list]»
«[/#if]»
In my case the If condition is not working when called from DOCX template which is called from a DOCX From Dynamic Template through a process.
I need to should 2 rows, but in the document it always shows 4 rows.
Can anyone help to check conditional logic is correct?
Thanks & Regards
Girish
Discussion posts and replies are publicly visible
Thanks for the response, but one more question can we hide a row based on the conditions in the word template. Please do help with a sample code snippet.
Hi girishk0002,
My recommendation would be for you to filter this data on Appian side, before you generate your XML, that way you have full control of the data that you want to send for your document generation.
Regards
Acacio B