Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications


Entity Customizations

Post Author: Joe D365 |

Entity customizations are the topic of today's blog! Default behavior of CRM is to display Related Entities in the Navigation pane of the Primary Entity. A little bit of tweaking in form JS can give us multiple customization options.

In the example below, we remove Entity from the navigation pane and display its associated grid view in a new tab on our Entity form.

photo1.jpg
Similarly image below illustrates related entities in Iframes on the same tab.

Related Entities

 

Here is the javascript to achieve this functionality:

function GetDisabilityFrame(){
    if (crmForm.ObjectId != null)

    {

        var oId = crmForm.ObjectId;

        var oType = crmForm.ObjectTypeCode

        var security = crmFormSubmit.crmFormSubmitSecurity.value;

        navpo_po_disabilitytype_contact.style.display = "none";
        return "areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" + security
        + "&roleOrd=2&tabSet=areapo_po_disabilitytype_contact";
    }

    else

    {

        return "about:blank";

    }
}

crmForm.all.IFRAME_Disabilities.src = GetDisabilityFrame();

The above method simply returns the src for Disability Type grid and assigns it to our IFrame.

Use IE Dev toolbar to get the required src, as illustrated below:

IFrame Src


Joe CRM
By Joe D365
Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

PowerObjects Recommends