Hello all,
Xrm.Page is being deprecated and Microsoft has announced that:
"Although Xrm.Page is deprecated, parent.Xrm.Page will continue to work in case of HTML web resources embedded in forms as this is the only way to access the form context from the HTML web resource."
It is not clear to me what happens when you have HTML resources, which call JS functions. How can I pass the Execution Context in those functions, when I do not have the context in the HTML file?
Example:
<!DOCTYPE html>
<html>
<head>
<title>Transactions</title>
<meta charset="utf-8" />
<script src="">ajax.googleapis.com/.../script>
<script src="">code.jquery.com/.../script>
<script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script type="text/javascript" src="../WebResources/la_datatables.min.js"></script>
<link href="../WebResources/la_datatables.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="">ajax.googleapis.com/.../jquery-ui.css" type="text/css" media="all" />
<script type="text/javascript" src="../WebResources/gas_RestHelper.js"></script>
<script>
var headers = [];
var columns = [];
var columnValues = [];
var tableHeaders = [];
$(document).ready(function () {
$('#loading').hide();
try {
var crmForm = window.parent.Alert.getCrmWindow();
if (crmForm) {
crmForm.myLibrary_library.getExampleButtonClick(); //I need the Execution Context to be passed in this function
}
...
Thank you


Report
All responses (
Answers (