<?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>ECO Validation</title><link>https://www.aras.com/community/f/development/36217/eco-validation</link><description>Good day all. I am trying to set up a validation (C#) for a field to make sure it is completed before moving to the next step in the Workflow Process. I have seen some information for validating a checkbox in C# and some form of validation with VB (I</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: ECO Validation</title><link>https://www.aras.com/community/thread/6113?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 18:50:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a2045ac3-551d-4ce9-8154-95f91f2cac87</guid><dc:creator>Nathan H.</dc:creator><description>&lt;p&gt;Angelalp,&lt;/p&gt;
&lt;p&gt;Thank you for this.&amp;nbsp; I got it working.&amp;nbsp; I&amp;nbsp;added the method&amp;nbsp;to the Activity as a Server Event that activates On Vote.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table style="border-color:#000000;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;// Get the controlled item. &lt;br /&gt;Innovator inn = this.getInnovator();&lt;br /&gt;Item controlledItem = this.newItem(this.getAttribute(&amp;quot;type&amp;quot;), &amp;quot;labs_GetControlledItemCSharp&amp;quot;); &lt;br /&gt;controlledItem.setID(this.getID()); &lt;br /&gt;controlledItem = controlledItem.apply(); &lt;br /&gt;if (controlledItem.getItemCount() != 1) &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;return inn.newError(&amp;quot;Error retrieving the controlled item: &amp;quot; + controlledItem.getErrorDetail()); &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;//Get what is selected for sm_change_end_state&lt;br /&gt;string endState = controlledItem.getProperty(&amp;quot;sm_change_end_state&amp;quot;,&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;//If sm_change_end_state is empty, return the message.&lt;br /&gt;if (endState == &amp;quot;&amp;quot;) return inn.newError(&amp;quot;Please select appropriate End State.&amp;quot;);&lt;/p&gt;
&lt;p&gt;return this;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ECO Validation</title><link>https://www.aras.com/community/thread/6091?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:42:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:57992b20-342d-4c85-9210-0e3160e6c58f</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Seems like you have assigned an id to get a controlled item. This is my variant based on an original Aras sample:&lt;/p&gt;
&lt;p&gt;// Get the controlled item. &lt;br /&gt;Item controlledItem = this.newItem(this.getAttribute(&amp;quot;type&amp;quot;), &amp;quot;labs_GetControlledItemCSharp&amp;quot;); &lt;br /&gt;controlledItem.setID(this.getID()); &lt;br /&gt;controlledItem = controlledItem.apply(); &lt;br /&gt;if (controlledItem.getItemCount() != 1) &lt;br /&gt;{ &lt;br /&gt; return inn.newError(&amp;quot;Error retrieving the controlled item: &amp;quot; + controlledItem.getErrorDetail()); &lt;br /&gt;} &lt;br /&gt;string teamId = controlledItem.getProperty(&amp;quot;team_id&amp;quot;,&amp;quot;&amp;quot;);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>