Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Get gridContext always null

$
0
0

Hi,

I have an editable grid and I cannot get gridContext using JS.

I have tries with OnChange and OnRecordSelect events, but its always null. 

grid name is correct

Client API grid context in model-driven apps - Power Apps | Microsoft Learn

this.SelectRows = function (eContext) {
	var formContext = eContext.getFormContext();
	var gridContext = formContext.getControl("logs");
	if (gridContext === null) {
         setTimeout(LogOptimisationAudit.SelectRows(eContext), 3000);
         return;
     }
	 var myRows = gridContext.getGrid().getRows();
}

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images