<?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>Hide Button by Classification</title><link>https://www.aras.com/community/f/development/37212/hide-button-by-classification</link><description>This seems straightforward, but I&amp;#39;m not having any luck. 
 We&amp;#39;ve modified the Document ItemType with an additional Classification category to link out to documents produced in another system. For this, we want to hide the &amp;quot;Open in Office&amp;quot; button. 
 Have</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hide Button by Classification</title><link>https://www.aras.com/community/thread/8112?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 19:34:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:41e86fa7-bcb9-4588-8983-397f918b17f1</guid><dc:creator>Jeff Stroh</dc:creator><description>&lt;p&gt;Thanks Angela.&amp;nbsp; I&amp;#39;ve found the Init method for the button and just need to decipher how it&amp;#39;s interpreting whether to show it or not.&amp;nbsp; The logic in the method doesn&amp;#39;t refer to any properties that I can see, it&amp;#39;s all variables in the method.&amp;nbsp; But regardless, this is a good starting point, thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide Button by Classification</title><link>https://www.aras.com/community/thread/8108?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 16:26:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:737c45da-01df-4e73-b2eb-a4bcff88e145</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Jeff,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you can do this with an &amp;quot;init&amp;quot; Method in your CUI element. It&amp;acute;s possible to disable a CUI button according to specific properties. I don&amp;acute;t have a sample at hand, but take a look on some of the existing CUI elements that do something similar. Maybe the Promote/Mass Promote elements.&lt;/p&gt;
&lt;p&gt;Edit: I never used the &amp;quot;classifications&amp;quot; so I am not sure if this would be the better variant. But I remember I disable one button according to the &amp;quot;state&amp;quot; property, which is somekind of similar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>