I have a task to create a Dynamic DOCX document with table in it. I have created one with number of rows increasing, but my requirement need me to make a table with dynamic column as well. Has anybody worked on such thing before. If yes please let me know how?
Discussion posts and replies are publicly visible
FYI, I am attaching the system of rules I developed to handle word doc table generation, which includes a demo process model which you can run and try out the generation, and then hopefully use as a template for using this system with your other data.
One word of caution: presumably due to the custom nature of the wordML being used here, I've gotten feedback from elsewhere that if a Word doc is generated using this functionality but then converted to PDF via the Appian smart service, the tables won't work correctly in the resulting PDF. However they look fine in the Word doc itself.
Please let me know if you have any questions.
Document Table Generator Test (generic, 17.2, july 2017 - updated).zip
Hi,
You can use smart service "DOCX From Dynamic Template" to generate the DOCX with dynamic number of rows based on the XML you pass. For the Word Template you should see the attached image below to get an idea about how you can create a template.
Later if you want to create a PDF you can use smart service "PDF from DOCX".
Hi Venkanna,
I can able to generate Dynamic table using Docx from Dynamic template smart service but facing an issue. I have 4 columns each has to display list of users. For single column it is working fine. But when i place 4 columns, duplicate rows are getting generated like (no of first column values * no of columns)
Ex: First column has 5 values and table has 4 columns. 20 rows are getting generated.
Please let me know if you have any solution.
Hi Mike. I got some missing precedence while importing this zip. I just wanted to know how you set the process model. Could you please give me a brief knowledge?
What are you trying to do exactly? This is a fairly old thread.
Hi inder, i have requirements to generate dynamic document with table where rows can be change according to the provided values, kind of a newbie in appian can help me with this please, how to approach this how to create a template.