Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Unlock text field on editable grid

Posted on by 45

I have a locked custom text field on an editable grid and would like this to not be locked. There is no javascript and everything on the field seems correct. On the form the field is editable just fine. What am I missing? 

  • Suggested answer
    We3 Profile Picture
    We3 5 on at
    RE: Unlock text field on editable grid

    If you are wondering where to find this just go to the entity's form designer and double-click on the sub-grid, add the JS library and connect to the OnRecordSelect event.

  • Suggested answer
    MehranBre Profile Picture
    MehranBre 730 on at
    RE: Unlock text field on editable grid

    hi,

    Call the following function for the OnRecordSelect editable grid event. Also check "Pass execution context as first parameter".

    function onSelectSubGrid(context) {
    
        var subGrid = context.getFormContext().data.entity;
    
        subGrid.attributes.forEach(function (field, i) {
            field.controls.get(0).setDisabled(false);
        });
    }

  • gkatsaros Profile Picture
    gkatsaros 45 on at
    RE: Unlock text field on editable grid

    There is no business rule, flow, security, or javascript on the form that is tied to this grid.

  • Suggested answer
    MehranBre Profile Picture
    MehranBre 730 on at
    RE: Unlock text field on editable grid

    Hello,

    Sorry, I meant "Business Rule" on the form of related Entity.

    pastedimage1614590846966v1.png

  • gkatsaros Profile Picture
    gkatsaros 45 on at
    RE: Unlock text field on editable grid

    could you explain more about what you mean?

  • Suggested answer
    MehranBre Profile Picture
    MehranBre 730 on at
    RE: Unlock text field on editable grid

    hi,

    Have you used "Business Process Flow" on the form of related Entity (Editable View)?

    best regards.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans