I have a form that needs to be manually updated via a button click. Based on items found I wrote the following web resource that I added to my form. Not one of the three options are actually doing a page refresh (I can tell as my form contains a view that should have an additional record added to it). Where am I going wrong? If there is some other way to do this I am willing to try it. Best Regard - Diane
<html><head><title></title><meta charset="utf-8"></head><body><button onclick="refreshPage_OnClick()">Refresh</button><script>
function refreshPage_OnClick()
{
alert("HI");
//window.location.reload(true); <==does nothing
Xrm.Page.data.refresh(); <==This one throws a javascript error
//document.getElementById('Negotiations').control.refresh();<==This one throws a javascript error
alert("Bye");
}
</script></body></html>