Microsoft Dynamics CRM

{Utility}Dialogs Property box in Dynamics CRM 2013 Form

I really used to like the CRM 2011 Dialogs Properties window. If you have forgotten, here is a screen which might make you remember the properties dialog on the form:

image

I just wanted to have a working one in CRM 2013 as well. A little drilling made me understand that is it pretty much available in CRM 2013 as well (in system pages of CRM), so here is what I did:

Step 1:

Embed one html web resource called properties in the Admin forms I Need:

You can directly download doc file from here convert it to html and then upload as html web resource to your forms.

Source code below:

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;

<head>

</head>

<body id=”bodyId” onload=”onload()”>



<script src=”ClientGlobalContext.js.aspx” type=”text/javascript”></script>

<script type=”text/javascript”>

function onload() {

var url = window.parent.Xrm.Page.context.getClientUrl() + “/_forms/properties/properties.aspx?id=” + window.parent.Xrm.Page.data.entity.getId().toString().substr(1, (window.parent.Xrm.Page.data.entity.getId().toString().length – 2)) + “&objTypeCode=” + window.parent.Xrm.Page.context.getQueryStringParameters().etc;

document.getElementById(“tt”).src = url;

}

</script>

<title></title>

//Iframe with id ‘tt’ needs to be embedded here

</body>

</html>

Step 2:

Add a Tab named properties to the form and put web resource inside it.

The screen will look pretty much like the one below:

clip_image002

Note: This webresource is reusable for all CRM entities.

Ask your Query : Click here

Hope it helps!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s