Forum Discussion
8 Replies
- GopikrishnanIdeator I
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.
- SuhasIdeator I
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
- miraksIdeator 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.
- NileshIdeator 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