Skip to main content

Notifications

Announcements

No record found.

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

How to Retrieve Data from an Editable Grid View in Dynamics 365 Using JavaScript?

(0) ShareShare
ReportReport
Posted on by 6

Hello friends,

I need some help understanding a situation in Dynamics. I have an Editable Grid (not a subgrid), also known as an editable view, and I need to retrieve the data from a row using JavaScript. I have tested it, and my function is being called correctly. However, in my research, everyone suggests accessing the grid using var gridContext = formContext.getControl("name_your_grid"); but I don't know how to get the name of the grid in the case of a view. Can you help me?

  • Suggested answer
    CU10012116-0 Profile Picture
    CU10012116-0 6 on at
    How to Retrieve Data from an Editable Grid View in Dynamics 365 Using JavaScript?
    @Nitesh Raj
    Thank you for your help, but I am actually referring to the Grid View, the list of records, not a subgrid inside a form.
  • Nitesh Raj Profile Picture
    Nitesh Raj 48 on at
    How to Retrieve Data from an Editable Grid View in Dynamics 365 Using JavaScript?
    You can get the grid name from the form:



    Use:

    const t = executionContext.getFormContext().getControl("Subgrid_new_1");
     

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 Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans