ARAS 12 - How to remove "Create New XXX" button ?

Hi,

I defined an ItemType named "Cost".
This is a relationship without related item.
There is nothing in the "Can Add" of this ItemType because nobody can create a "Cost". There are only created by code.

In ARAS 12, I have this:

What should I do in CUI to remove "Create New Cost" ?

  • This CUI button is generic and common to all item types. So, removing it will cause issue in other item types. 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.

  • Hi Miraks,

    Gis right, CUI button is generic and it will impact on all item types. 

     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.

    below is the code to restrict all users to create Item from main grid :

    var inn = top.aras;
    if (window.itemID === undefined){
    aras.AlertError("You cannot create Item from the main grid!");
    return false;
    }else{
    return this;
    }

    Regards,

    Suhas

  • Hi and ,

    Because, I have nothing in "Can Add" of the ItemType, the button do nothing when I click on it.
    And will never do something, this is why I wanted to remove it.

    But if this is not possible, I will forgot this idea.