<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>Tech Doc Content automation from CUI Method Call</title><link>https://www.aras.com/community/f/development/55323/tech-doc-content-automation-from-cui-method-call</link><description>Hello, 
 
 I&amp;#39;ve written a CUI method to instantiate a new Tech Doc from within the &amp;quot;Parts&amp;quot; page, and its&amp;#39; fields are set, including which schema to use. 
 
 There&amp;#39;s a necessity to build out this new corresponding tech doc with a very specific content</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Tech Doc Content automation from CUI Method Call</title><link>https://www.aras.com/community/thread/10581?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 18:30:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ce87eb6a-8afd-4c51-8a37-f18188fdaaeb</guid><dc:creator>Frank Guarino</dc:creator><description>&lt;p&gt;Ya I was, although it went much different than expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using JavaScript instead of C# for this method.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I ended up building out the content via an XML document within the cache and then storing that in tp_block&amp;#39;s column &amp;#39;content&amp;#39;. Getting this data to conform to the Technical Documentation renderer was difficult, for example I needed to individually set each XML node&amp;#39;s ID for tables &amp;amp; rows, and had to ensure my xml nodes were cleanly appended, in the end mimicing XML which would be created by Aras when using the technical documentation UI.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tech Doc Content automation from CUI Method Call</title><link>https://www.aras.com/community/thread/10564?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 08:50:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:76aac64c-de29-4194-a17e-2f5095cf9243</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;were you able to find a solution already?&lt;/p&gt;
&lt;p&gt;I haven&amp;acute;t fully understand what you want to build, but you should be able to add the custom elements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The root element can&amp;nbsp;be fetched like this:&lt;/p&gt;
&lt;p&gt;string docId = executionContext.DocumentId;&lt;br /&gt;Innovator inn = this.Factory.InnovatorInstance;&lt;br /&gt;Item thisDoc = inn.getItemById(&amp;quot;tp_Block&amp;quot;, docId);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>