DOM | XRM or D365 ExecutionContext |
document.getElementById() | parent.document.getElementById() or window.parent.document.getElementById() Remark: this is still DOM, and only "more qualified", or a call to the "parent" object (which might help). However, it's likely not going to work for versions above CRM 2015 Update 1. See the paragraph "more on document.getElementById()" below. Microsoft Dynamics has "disabled" this for > 2015 Update 1, meaning document.getElementById (and implmentations of it in jQuery) does not provide access to the "DOM element" in Forms (but in Web/HTML: yes). Use implementations of: Xrm.Page.getControl().appropriate_method() Xrm.Page.getAttribute().appropriate_method() |
context.getServerUrl | Xrm.Page.context.getClientUrl() |
disableViewPicker | Xrm.Page.ui.controls.get("").setDisabled(true) |
crmForm.FormType() | Xrm.Page.ui.getFormType() |
control.attachEvent("onclick" , CallFunction ) | formContext.getAttribute(arg).addOnChange(myFunction) |
padding | no simple equivalent statement: fully rewrite (I think) |
field.style.fontStyle | no simple equivalent statement: Amazingly, sometimes this produces an error in XRM.Page |
if(Xrm.Page.getAttribute("parentaccountid").getValue() != null) | if(formContext.getAttribute("parentaccountid").getValue() != null) for D365 later versions |