<?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>Method</title><link>https://www.aras.com/community/f/development/3577/method</link><description>hello
I want to write method for onclick event on form so that after click botton on form new form with some value should get populate.</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Method</title><link>https://www.aras.com/community/thread/1337?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 23:08:50 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1a1b63e9-70d9-405d-90da-d7f74d080c4f</guid><dc:creator>Former Member</dc:creator><description>Hi Angela,

Please be specific about what you are trying to achieve.

I suggest with this sort of request you say something like:

I would like to write an onClick method on a Part form so that when the button is clicked a new Document item is created and displayed.

I think this is the sort of thing that you are trying to ask but I&amp;#39;m not completely sure.

var ctx = document.thisItem;
var inn = ctx.getInnovator();

var newItm = ctx.newItem(&amp;quot;Temp_test&amp;quot;,&amp;quot;add&amp;quot;);
newItm = newItm.apply();

var itm= top.aras.getItemById(&amp;quot;Temp_test&amp;quot;,newItm.getID(), 0);
top.aras.uiShowItemEx(itm,&amp;quot;tab view&amp;quot;, true);

This code creates a new &amp;quot;Temp_test&amp;quot; item type and displays it in a window.

Hope this helps.

Brian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>