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

Subgrid SetParameter on 2016 on premise doesn't work any more

$
0
0

Hi all, 

On the 2015 on-prem version I used to apply a fetch xml filter on a subgrid through the SetParameter method.

On the 2016 on-prem this code doesn't look to work any more.

Did some one found a work-around to solve this issue?

Here is a sample code:

function FilterGrid()
{
	debugger;

	var objSubGrid = document.getElementById("gridName");
	if (objSubGrid == null)
	{
		setTimeout(FilterGrid, 3000);
		return;
	}
	else
	{
		debugger;

		
			var FetchXml = "a fetch XML";

			objSubGrid.control.SetParameter("fetchXml", FetchXml);

			objSubGrid.control.Refresh();

		
		
	}
}


I have also tryed window.parent.document.getElementById("gridName") but still doesn't work.

Thanks in advance for any help. 


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images