Forum Discussion
Suhas
6 years agoCreator III
Hi Miraks,
Gopikrishnan is 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
miraks
6 years agoCreator II
Hi Suhas and Gopikrishnan,
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.