Read Only Sub Grids without Add Existing/New
Views (325)
There are few ways to achieve this in the Dynamics
1. Using the security roles - you can create a security role for Account: Appent To (lookups can be added to Account) and Contact - Append (because contact can be appened with lookup) and assign to the users who can only create/add + in the SUB GRID and all other users will have Read Only Sub Grid.
2 Javascript on load
Hide the Add Image Button Image for the Sub Grid control
Get the control: var MySubGridCtrl = XRM.Page.GetControl("ContactSubGrid")
if (MySubGridCtrl != null)
{
var AppendToAddButton = window.parent.document.getElementById ("ContactSubGrid_plusimageButton");//verify the correct name using F12
AppendToAddButton.style.display = 'none';
}
*This post is locked for comments