Hello everyone,
I've been trying to navigate to a different page with the name 'cr913_designation' right after the alert pop up appears and clicking yes. First, with the code below , the pop up appears as shown in the first picture above. After clicking yes another pop up appears shown in the picture above with an error and i cannot navigate to the second page. Can someone please help me with this problem and double check with me the code if i did anything wrong ?
The code as shown :
function OpenAlert(){
var alertStrings = { confirmButtonLabel: "Yes", text: "This is an alert.", title: "Sample title" };
var alertOptions = { height: 120, width: 260 };
Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
function success(result) {
function ();
},
function (error) {
console.log(error.message);
}
);
}
function navigate() {
var pageInput = {
pageType: "custom",
name: "cr913_designation",
};
Xrm.Navigation.navigateTo(pageInput)
.then(
function () {
}
).catch(
function (error) {
}
);
}