Forum Discussion
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
- miraks6 years agoIdeator I
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.
- Nilesh5 years agoIdeator I
Hello,
I want to do the same, Is there a way to remove that create button or disable it from UI.
My use case is I am creating items from the backend code using IOM api and want to restrict Item creation from UI.
For disabling button I can remove can add from item but in that case I can't create items using IOM api as well.
Need some way remove or disable create button from UI only.Thanks,
Nilesh- Gopikrishnan5 years agoIdeator I
Under can add, give access only to user account you are using to create the item in IOM api.(example: Super User).