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" ?

Parents
  • 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

Reply
  • 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

Children