D365 Common Functions - Jump Start Development
function SetFormContextToTheWebResource(formContext, htmlResources) { // debugger; for (var i = 0; i < htmlResources.length; i++) { var wrControl = formContext.getControl(htmlResources[i]); if (wrControl) { wrControl.getContentWindow().then( function (contentWindow) { // debugger; contentWindow.setFormContext(formContext, Xrm); } ); } } }
Comments
Post a Comment