web
You’re offline. This is a read only version of the page.
close
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 .

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    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

  • FikriHailal Profile Picture
    121 on at

    Thanks you, it works

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans