<?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>Inser to Database</title><link>https://www.aras.com/community/f/development/3692/inser-to-database</link><description>Hello

I made a form (type = &amp;quot;text&amp;quot;) and (button), and I want to save the value to database. I used Java Script to get the value, how can I save it to database .

i want to use c# .

 

Best regards</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Inser to Database</title><link>https://www.aras.com/community/thread/1600?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 09:04:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b4175ad5-fdb7-402e-bb1f-2f21c4926c49</guid><dc:creator>Former Member</dc:creator><description>Thank you for your response .

I created this method :

var val = getFieldByName(&amp;quot;text0&amp;quot;).getElementsByTagName(&amp;quot;input&amp;quot;)[0].value;

var sam = val*2;

aras.applyMethod(&amp;quot;Beispiel&amp;quot;, &amp;quot;&amp;quot; + sam + &amp;quot;&amp;quot;);

now i want to receive (sam) in server seit and save it in another item type

how can i do it ?

Best regards .

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inser to Database</title><link>https://www.aras.com/community/thread/1574?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 02:56:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:694f35f4-403a-4f26-abf5-0e6f7c110dc2</guid><dc:creator>Zahar Chernov</dc:creator><description>Sorry wrong answer.

To be able save on button click you need to add client side method to your &amp;quot;onClick&amp;quot; event that will send information to the server side method:

top.aras.applyMethod(&amp;quot;NAME OF SERVER SIDE METHOD&amp;quot;, &amp;quot;&amp;lt;property_name1&amp;gt;some value&amp;lt;/property_name1&amp;gt;&amp;lt;property_name2&amp;gt;another value&amp;lt;/property_name2&amp;gt;&amp;quot;)

then in you server side method you can access to your values by:

this.getProperty(&amp;quot;property_name1&amp;quot;)
this.getProperty(&amp;quot;property_name2&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inser to Database</title><link>https://www.aras.com/community/thread/1571?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 02:36:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:11a0c335-bb61-4147-998c-06ce63c510d3</guid><dc:creator>Zahar Chernov</dc:creator><description>Hello,

Please make sure that you have &amp;quot;get&amp;quot; and &amp;quot;can discover&amp;quot; permissions for World or any relevant Identity&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>