<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Generate document with dynamic table  in it</title><link>https://community.appian.com/discussions/f/process/11388/generate-document-with-dynamic-table-in-it</link><description>Hi, 
 I have to create a document(it could be any type) with dynamic table in it. is there a way to achieve this without using any other shared component/plug-in ? 
 Thanks in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/88217?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 10:48:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb65ed99-c50e-44c6-a617-c25a472a8b1d</guid><dc:creator>bhavatharinis942</dc:creator><description>&lt;p&gt;Hi Harsha,&lt;/p&gt;
&lt;p&gt;Will you please explain that how to do it in script task when the row values are dynamic ..&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;td&amp;gt;John&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Accounts&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;3 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Philip&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;HR&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;5 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Adam&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Networking Services&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;2 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;In these lines, values(like 5 years, Adam)&amp;nbsp; are passed default... &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But how to pass it dynamic based on no of rows and values in each row which I had in pv&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/63932?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 08:51:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:161c2e31-3cfa-4ad8-ba52-776e2fb969b0</guid><dc:creator>chandu</dc:creator><description>Hi Harsha,&lt;br /&gt;
&lt;br /&gt;
How can I convert this GeneratedDoc.rtf to PDF? &lt;br /&gt;
Do we have any plugin other than Advanced Document Template?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50239?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 07:00:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65470912-83f4-45cd-b3f6-a32854dfe7d2</guid><dc:creator>annap</dc:creator><description>Thanks Harsha, Its done. I was making mistake in template extension.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50236?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 05:54:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9be9080c-c1c0-4083-b7b4-cbefbde83376</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Hi annap, This is the template that I am using.&amp;nbsp;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/14/Template.rtf"&gt;community.appian.com/.../Template.rtf&lt;/a&gt;. It is having ###studentTable### as the only data in it.&lt;/p&gt;
&lt;p&gt;Now in the process model using script tasks and MNI through the PV I have created a html table code as :&amp;nbsp;&amp;lt;table border=&amp;#39;1&amp;#39;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Department&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Experience&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;John&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Accounts&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;3 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Philip&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;HR&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;5 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Adam&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Networking Services&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;2 years&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/SS1.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/SS1.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now in the Text to document Node this is the configuration that I have done:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/SS2.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/SS2.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see the template is scanned by this smart service and studentTable variable which was within ### in the document is asking for a value where I am assigning the studentDetails text corresponding to HTML.&lt;/p&gt;
&lt;p&gt;After running the process this is the generated document that I am getting :&amp;nbsp;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/14/Generated-Doc.rtf"&gt;community.appian.com/.../Generated-Doc.rtf&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50235?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 04:05:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9236f2d5-073c-4080-8fa4-a6b4ce7bd1f7</guid><dc:creator>annap</dc:creator><description>Thanks Jose for your reply. Question is, is it possible to generate dynamic table(number of rows are not fix and it depends on user input) in the document. i do not want use any other plug in than Appian provided in document generation. As Harsha said, its possible by &amp;quot;Text doc from template&amp;quot; but Im not able to do it. @Harsha, could you please share me sample input for that smart service and template format.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50219?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 20:47:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f089fe64-becf-474c-ab2a-1fd1a8fe90aa</guid><dc:creator>josep</dc:creator><description>Hello I am not sure I understood your question what you mean by saying &amp;quot;without using any other shared component/plug-in&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
From previous answers i think you are able to use the plugin &amp;quot;Dynamic document Generation&amp;quot; (&lt;a href="https://community.appian.com/b/appmarket/posts/dynamic-document-generator)"&gt;community.appian.com/.../dynamic-document-generator)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If not that will be really difficult, but i understand you are able to, so It always depends what you mean by &amp;quot;Dynamic table&amp;quot;. &lt;br /&gt;
Using the same smart service suggested by Harsha you can generate txt, csv, html, xml, based on a expression rule. &lt;br /&gt;
&lt;br /&gt;
the file should be like this &lt;br /&gt;
--------template.txt-----&lt;br /&gt;
###tag### &lt;br /&gt;
-------------------------------&lt;br /&gt;
NOTE: the extension you give to the template will be the same extension you will get in the generated file. &lt;br /&gt;
&lt;br /&gt;
When selecting the template choose this file, and scan the variables, then the template will give you the option to pass any expression ,can be any string you generate or the output of any rule, i recommend to put all the logic in the rule so the logic is easy to write, test and debug. &lt;br /&gt;
&lt;br /&gt;
NOTE: if you file is large try not to store the value in a pv!variable, because your process will be storing that, and try to delete the process instances as soon as possible. &lt;br /&gt;
&lt;br /&gt;
i hope this helps, if you need a word or pdf then that is another story. &lt;br /&gt;
&lt;br /&gt;
Jose Perez&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50099?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 07:53:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb4399f1-913f-40cd-97eb-63080e486ce7</guid><dc:creator>annap</dc:creator><description>I am able to do it from &amp;quot;HTML Doc from Template&amp;quot; smart service but unable through text doc. Could you please share the final pv value, how it should be and template document to achieve this &amp;quot;Text doc from template&amp;quot; smart service.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate document with dynamic table  in it</title><link>https://community.appian.com/thread/50057?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 10:12:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c96e879-71c9-4143-9da6-8145ce75e053</guid><dc:creator>Harsha Sharma</dc:creator><description>Yeah you can achieve so by using the smart service Text doc from template available under Document Generation Appian smart services . For dynamic table you need to generate an html code in your process and pass that html code in the document. In the template you will need to accordingly use ###tag### to display dynamic data received from the process.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>