Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Get value from subgrid in unified interface

(0) ShareShare
ReportReport
Posted on by 121

Hello, i'm facing trouble when try to get value from subgrid. Here is my code:

function editableGridRow()
{
	
	
	var childsubGrid = window.parent.Xrm.Page.getControl("ChildGrid").getGrid();
	var TotalRecordCount = childsubGrid.getRows();
	
	TotalRecordCount.forEach(function (row, i) {
            
			var gridColumns = row.getData().entity.getAttributes().getByName("new_numberitems");
			
			var value = gridColumns.getValue();
			//loop through each column in row
			alert("NAME: "   value);
            
        });
}

this code work in standar interface. but when change to unified interface it's not work. What should i change in my code ? need help, thanks .

  • FikriHailal Profile Picture
    121 on at
    RE: Get value from subgrid in unified interface

    Thanks you, it works

  • Verified answer
    cloflyMao Profile Picture
    25,208 on at
    RE: Get value from subgrid in unified interface

    Hi Fikri,

    We can use following code to work in UCI.

    var gridControl = window.parent.Xrm.Page.getControl("ChildGrid").getGrid();
    var gridRows = gridControl.getRows();
    gridRows.forEach(function (row, i) {
       var gridColumns = row.getData().getEntity().attributes;
       var value = gridColumns.get("fullname").getValue();
       //loop through each column in row
       console.log("NAME: "   value);
    });

    pastedimage1600242609178v1.png

    Regards,

    Clofly

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans