Hello experts,
I want to refresh the Page on success of dialogue box Button click in JavaScript.
I tried to solve it by using
-
parent.Xrm.Page.data.refresh(true);
-
Xrm.Page.data.refresh(true);
-
window.refresh();
but, all of this won't refresh the view and unselected the selected record.
so is there any way, to reload the page, or auto click the refresh button.
Here is my part of Code, where i am using refresh page function
var error = JSON.parse(this.response).error; Xrm.Navigation.openErrorDialog({ message: error.message}).then( function(success) { setTimeout(function () { parent.Xrm.Page.data.refresh(true); }, 500); }, function (error) { console.log(error); setTimeout(function () { parent.Xrm.Page.data.refresh(true); },800); });