Hi, I'm trying to display custom html, I use Xrm.Internal.openDialog function as it displays window pretty, like crm does.
Here's my js:
var DialogOption = new Xrm.DialogOptions;
DialogOption.width = 700;
DialogOption.height = 520;
Xrm.Internal.openDialog("/WebResources/new_closePhoneCall_confirmed.html",
DialogOption,
null, null,
function (returnValue) { alert(returnValue) });
And my html page:
<html>
<head>
<script src="/WebResources/ClientGlobalContext.js.aspx" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="new_bootstrap.min.css">
<script>
function closeDlg() {
var result = "123";
Mscrm.Utilities.setReturnValue(result);
try {
closeWindow(true); // Close the dialog box
}
catch (e) { }
}
setParams = function (link, target, action) {
var form = document.findElemetById("mainF");
form.action = link;
}
</script>
<style>
#Close {
position: absolute;
bottom: 0px;
}
</style>
<meta charset="utf-8">
</head>
<body style="word-wrap: break-word;">
<div class="jumbotron" style="max-width:500px">
<div id="mainF" class="container text-center">
<input id="Close" class="btn btn-primary" type="button" value="Confirm and close" onclick="closeDlg();">
</div>
</div>
</body>
</html>
It displays my page just how I want but I need to pass parameters to it - call js function inside or something...
How do I do this?
Passing params inside url like this doesnt work, I get error 500
Xrm.Internal.openDialog("/WebResources/new_closePhoneCall_confirmed.html?param='value'"//... err 500
Passing params inside url like this doesnt work, I get error 500
And also I see parameters 3 and 4 (I have them as nulls) in Xrm.Internal.openDialog() - what are they for? I can't find any description for them
*This post is locked for comments
I have the same question (0)