<?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>ARAS 12 - How to remove &amp;quot;Create New XXX&amp;quot; button ?</title><link>https://www.aras.com/community/f/development/16821/aras-12---how-to-remove-create-new-xxx-button</link><description>Hi, 
 I defined an ItemType named &amp;quot;Cost&amp;quot;. This is a relationship without related item. There is nothing in the &amp;quot;Can Add&amp;quot; of this ItemType because nobody can create a &amp;quot;Cost&amp;quot;. There are only created by code. 
 In ARAS 12, I have this: 
 
 What should I</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/5958?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 06:18:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6db05a72-7f01-4e6d-8b54-e5b4bdb64838</guid><dc:creator>Nilesh</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Gopikrishnan,&lt;/p&gt;
&lt;p&gt;I did it, thanks for reply.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Nilesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/5913?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 05:56:15 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6aa8ca4c-8a0a-4528-9f51-a4a65d937d89</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi Nilesh&lt;/p&gt;
&lt;p&gt;You can create specific identity and add in can Add. Only members of that identity can add the item in UI as well as in IOM method. In your method, you can grant the access to that identity and revoke later.&lt;/p&gt;
&lt;p&gt;Code Snippet below&lt;/p&gt;
&lt;p&gt;In my case, I added ARAS PLM in Can Add - Only members of ARAS PLM can add this item&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;// Granting Access to ARAS PLM&lt;/strong&gt;&lt;br /&gt;Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName(&amp;quot;Aras PLM&amp;quot;);&lt;br /&gt;bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt; var createItem = inn.newItem(&amp;quot;Document&amp;quot;, &amp;quot;add&amp;quot;);&lt;br /&gt;&lt;span&gt;createItem&lt;/span&gt;.setProperty(&amp;quot;name&amp;quot;, &amp;quot;TestDocument&amp;quot;);&lt;br /&gt;&lt;span&gt;createItem&lt;/span&gt;.setProperty(&amp;quot;item_number&amp;quot;, &amp;quot;1234&amp;quot;);&lt;br /&gt;&lt;span&gt;createItem&lt;/span&gt;= &lt;span&gt;createItem&lt;/span&gt;.apply();&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt; &lt;strong&gt;// Revoke &amp;#39;Aras PLM&amp;#39; permissions&lt;/strong&gt;&lt;br /&gt; if (PermissionWasSet) Aras.Server.Security.Permissions.RevokeIdentity(plmIdentity);&lt;br /&gt;}&lt;br /&gt;return this;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Gopikrishnan R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/5912?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 04:27:36 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:492396d5-bb73-469d-80ce-36d4116030e0</guid><dc:creator>Nilesh</dc:creator><description>&lt;p&gt;Thanks for reply......&lt;/p&gt;
&lt;p&gt;In IOM api I am using admin user and want to disable create button for the same user, See I don&amp;#39;t it is possible by making changes in can add relationship, As I need to add some user in can add to create item using IOM api, but that user can create item from UI right, I want to restrict that.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Can I do it using any client script?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Nilesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/5911?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 03:24:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8469873c-e5c7-4bc7-b0f3-e250429d27a7</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Under can add, give access only to user account you are using to create the item in IOM api.(example: Super User).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/5904?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 08:51:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2588c450-a132-4ce5-b6a6-5c3e2d4cde55</guid><dc:creator>Nilesh</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I want to do the same, Is there a way to remove that create button or disable it from UI.&lt;br /&gt;My use case is I am creating items from the backend code using IOM api and want to restrict Item creation from UI.&lt;br /&gt;&lt;br /&gt;For disabling button I can remove can add from item but in that case I can&amp;#39;t create items using IOM api as well.&lt;br /&gt;Need some way remove or disable create button from UI only.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Nilesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/4978?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 06:36:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:24209e18-b22a-481e-8e08-a5cdd916d09f</guid><dc:creator>miraks</dc:creator><description>&lt;p&gt;Hi &lt;a href="/community/members/suhas"&gt;Suhas&lt;/a&gt; and &lt;a href="/community/members/gkarasuser"&gt;Gopikrishnan&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Because, I have nothing in&amp;nbsp;&lt;span&gt;&amp;quot;Can Add&amp;quot;&amp;nbsp;of the ItemType, the button do nothing when I click on it.&lt;br /&gt;And will never do something, this is why I wanted to remove it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But if this is not possible, I will forgot this idea.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/4971?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 05:08:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:46b95408-54d4-4ceb-a977-d99ec5020945</guid><dc:creator>Suhas</dc:creator><description>&lt;p&gt;Hi Miraks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;G&lt;a class="internal-link view-user-profile" href="/members/gkarasuser"&gt;opikrishnan&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;is right, CUI button is generic and it will impact on all item types.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Either you can restrict user through permission or on Item type client events (on before new event) you can write javascript method to restrict all users.&lt;/p&gt;
&lt;p&gt;below is the code to restrict all users to create Item from main grid :&lt;/p&gt;
&lt;p&gt;var inn = top.aras;&lt;br /&gt;if (window.itemID === undefined){&lt;br /&gt; aras.AlertError(&amp;quot;You cannot create Item from the main grid!&amp;quot;);&lt;br /&gt; return false;&lt;br /&gt;}else{&lt;br /&gt; return this;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Suhas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARAS 12 - How to remove "Create New XXX" button ?</title><link>https://www.aras.com/community/thread/4966?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 03:11:44 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d307c2a0-0bfd-4fb1-afb0-bbd7bf6025ea</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;This CUI button is generic and common to all item types. So, removing it will cause issue in other item types.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;Instead of removing the button you can restrict it through permissions. (Open Cost item type and under permission add new or use existing permission to restrict the user.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>