hi ,
the grid is not refreshinng .
below is my code :
function FundedSupportsSubGrid(){
var grid = getElementById('OpportunityCurrentFiscalYear');
//var clientContact = common.getValue('rsa_client_contact');
if (grid == null ) {
setTimeout('FundedSupportsSubGrid();', 500);
} else {
var fetchXml = [];
fetchXml.push('<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">');
fetchXml.push('<entity name="bis_projectbusinessunit">');
fetchXml.push('<attribute name="bis_name"/>');
fetchXml.push('<attribute name="bis_project"/>');
fetchXml.push('<attribute name="bis_keyaccount"/>');
fetchXml.push('<attribute name="bis_estrevenue_base"/>');
fetchXml.push('<attribute name="bis_estrevenue"/>');
fetchXml.push('<attribute name="bis_estawarddate"/>');
fetchXml.push('<attribute name="bis_businessunit"/>');
fetchXml.push('<attribute name="bis_projectbusinessunitid"/>');
fetchXml.push('<order attribute="bis_name" descending="false"/>');
fetchXml.push('<filter type="and">');
fetchXml.push('<filter type="or">');
fetchXml.push('<condition attribute="bis_competitor" operator="eq" uitype="competitor" value="'+ Xrm.Page.data.entity.getId()+'"/>');
fetchXml.push('<condition attribute="bis_competitor2" operator="eq" uitype="competitor" value="'+ Xrm.Page.data.entity.getId()+'"/>');
fetchXml.push('<condition attribute="bis_competitor3" operator="eq" uitype="competitor" value="'+ Xrm.Page.data.entity.getId()+'"/>');
//fetchXml += "<condition attribute='bis_competitor' operator='eq' uiname='Alaska' uitype='competitor' value='{A576591D-EDEB-E411-80F3-C4346BACBF08}' />"
fetchXml.push('</filter>');
fetchXml.push('</filter>');
fetchXml.push('</entity>');
fetchXml.push('</fetch>');
//Setting the fetch xml to the sub grid.
grid.control.SetParameter("fetchXml", fetchXml.join(''));
//This statement will refresh the sub grid after making all modifications.
grid.control.refresh();
}
}