Disabling "Create New Item" Button.

Hello All, 

Is there any way to remove or disable the create new item button 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 other way remove or disable create button from UI only. Someone please help.

Thanks,
Nilesh

Parents
  • Hello Nilesh,

    You can write "OnBeforeNew "client side method to restrict user to create Item from UI.

    Please find the below code to restrict user to create Item from UI.

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

    Regards,

    Suhas

Reply
  • Hello Nilesh,

    You can write "OnBeforeNew "client side method to restrict user to create Item from UI.

    Please find the below code to restrict user to create Item from UI.

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

    Regards,

    Suhas

Children
No Data