<?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>&amp;quot;This&amp;quot; String Becomes &amp;quot;srcElement&amp;quot;</title><link>https://www.aras.com/community/f/development/55436/this-string-becomes-srcelement</link><description>Hi all, 
 I have created a form that looks like this: 
 
 The table is pre-filled via a Form Event method. This is a checklist that the user fills out for document reviews. Clicking on the New Version button triggers a Field Event method that clears the</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: "This" String Becomes "srcElement"</title><link>https://www.aras.com/community/thread/10927?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 06:21:23 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6dfd6e81-1962-48ef-8f41-2f086cfca8ad</guid><dc:creator>henry_yc</dc:creator><description>&lt;p&gt;Yes&amp;nbsp;I re-render the entire html table with the same code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The table is inside a formatted text box with the field name &amp;quot;&lt;span&gt;_technical_review_checklist&amp;quot;. To write the table content (I think this is what you&amp;#39;re asking),&amp;nbsp;&lt;/span&gt;I use document.thisItem.setProperty(&amp;quot;_technical_review_checklist&amp;quot;, technical_review_checklist).&lt;/p&gt;
&lt;p&gt;After mucking around, I found a workaround. &lt;strong&gt;If I put an escape character inside the word like &amp;quot;t\his&amp;quot; then the word renders properly&lt;/strong&gt;. Acceptable solution but I am still interested to know why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "This" String Becomes "srcElement"</title><link>https://www.aras.com/community/thread/10923?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 12:32:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f415992b-70a2-4d46-8c22-6dcc7fc989c6</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;The first &amp;quot;table&amp;quot; tag is missing, but I guess you reduced the code sample for this post.&lt;/p&gt;
&lt;p&gt;srcElement is typical for field events and as far as I know contains the field context itself. It&amp;acute;s like &amp;quot;this&amp;quot; for fields.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What exactly do you replace? Do you re-render the complete html table with the same code?&lt;br /&gt;I assume you use a html element for your custom table. What code do you use to write the table content itself?&lt;br /&gt;Something like document.getElementById(&amp;quot;mytable&amp;quot;).innerHTML/innerText = tableStuff ?&lt;/p&gt;
&lt;p&gt;And check in the browser debugger how the table looks like in native html. Maybe you find some hints for any missing tags or similiar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "This" String Becomes "srcElement"</title><link>https://www.aras.com/community/thread/10919?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 02:46:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fb21cff3-dd48-463f-9acf-44009dae3f3c</guid><dc:creator>henry_yc</dc:creator><description>&lt;p&gt;I do something very similar.&lt;/p&gt;
&lt;p&gt;var technical_review_checklist =&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;html&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;td width=\&amp;quot;80%\&amp;quot;&amp;gt;&amp;lt;span style=\&amp;quot;font-weight: bold;\&amp;quot;Checklist Item&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;td width=\&amp;quot;80%\&amp;quot;&amp;gt;&amp;lt;span style=\&amp;quot;font-weight: bold;\&amp;quot;Y/N/NA&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;tr&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;td&amp;gt; 7. The level of detail in the document is suitable for this phase of development.&amp;lt;/td&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;quot;&amp;lt;/html&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Sorry about the text, it doesn&amp;#39;t show properly when I use a code block.&lt;/p&gt;
&lt;p&gt;Anyway, it works properly when I use it to pre-fill the field as a Form Event, but gets weird when I use it to replace the text as a Field Event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "This" String Becomes "srcElement"</title><link>https://www.aras.com/community/thread/10918?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 16:30:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4bb9d2e2-321e-4ee1-a0da-5e94354c3f37</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;My guess: You forgot some &amp;quot; or html tags somewhere. Your static text is executed as script.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you use something like this?&lt;/p&gt;
&lt;p&gt;htmlContent += &amp;quot;&amp;lt;td&amp;gt;This is my text inside a table. For this example we add a lot of words like this.&amp;lt;/td&amp;gt;&amp;quot;;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>