Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Using Web Resource to create a button to reload the page

$
0
0

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>



Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>