<?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>Hiding Select xClass Ellipse and Delete xClass button in Extended classification</title><link>https://www.aras.com/community/f/development/5164/hiding-select-xclass-ellipse-and-delete-xclass-button-in-extended-classification</link><description>Hi Team, 
 I have created a custom method, when a user selected some value in drop down list then the xClassification relationship will get added automatically. I want to prevent the user to delete or add new xClassification properties. How to achieve</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hiding Select xClass Ellipse and Delete xClass button in Extended classification</title><link>https://www.aras.com/community/thread/2406?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 07:21:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:455cbb91-a02f-43e0-9f2e-88f4e2711362</guid><dc:creator>krisgopi88</dc:creator><description>&lt;p&gt;Hi Chris&lt;/p&gt;
&lt;p&gt;Thanks for this. I was able to do it and played around the time limit to wait. For the first time during create, delete button is hided for 1st xProperty group but 2nd one is not hided. When I reopen both the delete button are hided.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/10/5875.pastedimage1547623242914v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hiding Select xClass Ellipse and Delete xClass button in Extended classification</title><link>https://www.aras.com/community/thread/2398?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 18:51:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2bbb292b-00c2-4d18-a85f-e67065c9d496</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can achieve this by running code like the sample below in an&amp;nbsp;&lt;strong&gt;onFormPopulated&lt;/strong&gt; event on your form where this xClass field exists.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;var nameOfXClassField = &amp;quot;xclass&amp;quot;; // &amp;lt;-- Change this to be the name of the field in your form&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;// Disable the ability to add additional xClass relationships&lt;br /&gt;var xClassEllipses = getFieldByName(nameOfXClassField).getElementsByClassName(&amp;quot;aras-field-xclasses-ellipses&amp;quot;)[0];&lt;br /&gt;xClassEllipses.style.pointerEvents = &amp;#39;none&amp;#39;; // disable the ability to click on this button&lt;br /&gt;xClassEllipses.children[0].style.backgroundColor = &amp;#39;#b3b3b3&amp;#39;; // change the color of the button&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;// Disable the ability to delete the xClass relationship&lt;br /&gt;// We have to do this inside of a timeout because these buttons are loaded after this form event is called&lt;br /&gt;setTimeout(function() {&lt;br /&gt; var xClassDeleteButtons = getFieldByName(nameOfXClassField).getElementsByClassName(&amp;quot;aras-field-xclasses__delete-cross&amp;quot;);&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;for (var i = 0; i &amp;lt; xClassDeleteButtons.length; i++)&lt;br /&gt; {&lt;br /&gt; var deleteButton = xClassDeleteButtons[i];&lt;br /&gt; deleteButton.parentElement.removeChild(deleteButton);&lt;br /&gt; }&lt;br /&gt;}, 1000); // &amp;lt;-- You should play around with this value to find the minimum amount of time you need to wait based on your environment&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&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>