<?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>saving an item programatically after locking it</title><link>https://www.aras.com/community/f/development/9577/saving-an-item-programatically-after-locking-it</link><description>Hello All, I have created an itemtype &amp;quot;ItemOne&amp;quot; with Form that conyain a field &amp;quot;fieldTest&amp;quot;. What i want to do is filling the field when the ticket is locked. I have created a form event method and assign it to the form with event onFormPopulated: var</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: saving an item programatically after locking it</title><link>https://www.aras.com/community/thread/4850?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 10:33:45 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b99fb973-4485-4e3b-8a54-d641d8499aff</guid><dc:creator>mouad</dc:creator><description>&lt;p&gt;Hi Chris,&lt;br /&gt;&lt;br /&gt;Let me elaborate more,&lt;br /&gt;&lt;br /&gt;when i want to create or modify an item already created&amp;nbsp; i need to fill in the fieldTest field manually, but when the item is locked we cannot fill in this field with a text because it will be deactivated, whereas&amp;nbsp;the item must be unlocked&amp;nbsp; so that &amp;#39;we can fill in the &lt;span&gt;fieldTest&lt;/span&gt;.&lt;br /&gt;what I want to do exacly is fill this field when the item is locked then since this field is deactivated in this case I make it activated by disabled = false and readOnly = false for the filled and when the item is unlocked I deactivate this field by disabled = true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving an item programatically after locking it</title><link>https://www.aras.com/community/thread/4834?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 17:44:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0b888313-0c97-4b6b-b2b3-2b4b4aa9116d</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi mouad,&lt;/p&gt;
&lt;p&gt;You can fill the value of these fields&amp;nbsp;by getting the input element and setting the value. This is a very similar process to what you&amp;#39;re already using to enable/disable the fields.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;fields.getElementsByTagName(&amp;quot;input&amp;quot;)[0].value = &amp;quot;Your value&amp;quot;;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Additionally, would you be able to clarify more about the exact use case for this field? Depending on what you&amp;#39;re trying to do, I may be able to suggest a better alternative than manually handling all of the functionality behind this field.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving an item programatically after locking it</title><link>https://www.aras.com/community/thread/4832?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 15:36:52 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d800c387-f52c-48ce-a027-70f98c1dda2f</guid><dc:creator>mouad</dc:creator><description>&lt;p&gt;Thanks Chris for your reply,&lt;br /&gt;&lt;br /&gt;can you please share an example about handle the loading data ?&lt;br /&gt;&lt;br /&gt;Note that the goal is to fill the fieldTest that is not linked to a specific preperty when the item is locked&amp;nbsp;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1587483393240v1.png" alt=" " /&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saving an item programatically after locking it</title><link>https://www.aras.com/community/thread/4826?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 14:20:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2e2a9823-0045-43f6-a863-634bbc1b2629</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you clarify what the&amp;nbsp;&lt;em&gt;fieldTest&lt;/em&gt; field is intended to represent? If this is intended to be linked to a property on the item, you can do this by setting the&amp;nbsp;&lt;em&gt;Data Source&lt;/em&gt; of the field through the form editor. If this is intended to represent data that isn&amp;#39;t linked to a specific property on the item, you&amp;#39;ll need to also handle loading in the appropriate data in an&amp;nbsp;&lt;em&gt;onFormPopulated&lt;/em&gt; event.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>