I have created a custom Modal Dialog Form for Contact Entity.
The error occurs when I try to call Mscrm.Utilities...
functions.
Console (Chrome) says:
Uncaught ReferenceError: Mscrm is not defined(…)
I understand that I need to someway import or register this namespace to call its functions, but idk how to do this.
I have only following imports on my form:
<%@ Page language="c#" %>
<%@ Register TagPrefix="loc" Namespace="Microsoft.Crm.Application.Controls.Localization" Assembly="Microsoft.Crm.Application.Components.Application" %>
<%@ Import Namespace="Microsoft.Crm.Utility" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="Microsoft.Crm"%>
<%@ Register TagPrefix="crm" Namespace="Microsoft.Crm.Controls" Assembly="Microsoft.Crm.Application.Components.UI" %>
<%@ Register TagPrefix="sdk" Namespace="Microsoft.Crm.Application.Components.Sdk.FormControls.Web" Assembly="Microsoft.Crm.Application.Components.Sdk.FormControls" %>
<%@ Register TagPrefix="frm" Namespace="Microsoft.Crm.Application.Forms" Assembly="Microsoft.Crm.Application.Components.Application" %>
In standard Microsoft Dialog Forms the first line is like:
<%@ Page language="c#" Inherits="Microsoft.Crm.Web.Sfa.ContactDetailPage" %>
and this namespaces (Mscrm, Mscrm.Utilities, etc) I guess are coming from inherited class. But in my case I can't inherit any of this classes, cause I have custom dialog.