{How to} lock the records listed with editable grid in a view on Dynamics 365 Sales

Hello Everyone,
Today  i am going to show how to lock the fields on editable grid when on list view of the dynamics 365 sales record.

Let’s gets’s started.
Scenario: 

There is a requirement to lock some of the fields which are locked at record level but they are editable when on editable grid of the dynamics 365 sales record. 
So now we need to lock those locked fields on the editable grid as well. Also that lock functionality should work on all the views of the listed records.

How do you do that?
In order to achieve this functionality it is possible with Javascript.
————————————————————————————————————————-
function ShowHideTabs(executionContext, settings) {
    formContext = executionContext.getFormContext();
    booleanFieldValue = formContext.getAttribute(settings.booleanFieldName).getValue();
    if(booleanFieldValue == null){
      booleanFieldValue = false;
    }else if(settings.invertBoolean == true){
    //…

Source link

Author: Malla Reddy Gurram

Share This Post On
Share via
Copy link
Powered by Social Snap