Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

is it possible to add js controle to subgrid associated view ?

(1) ShareShare
ReportReport
Posted on by 90

I display locked fields on a editable subgrid, but it does not display in locked mode.

that's why I made a simple JavaScript code :

function gridRowSelected(context) {
context.getFormContext().getData().getEntity().attributes.forEach(function (attr) {
if (attr.getName() === "field1" || attr.getName() === "field2") {
attr.controls.forEach(function (c) {
c.setDisabled(true);
})
}
});
}

On Event : OnRecordSelected.

it work very well in subgrid but it does not work on the associated view, is there a solution ?

*This post is locked for comments

  • Power_Thomas Profile Picture
    Power_Thomas 5 on at
    RE: is it possible to add js controle to subgrid associated view ?

    Having the same problem here..

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans