Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

JS code for Double click on individual subgrid to open case entity record

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a subgrid of individual entity that has the fields like (name, id, caseid), when i double click on the record in that subgrid,i must get the case entity record associated with that individual entity, can anyone help with the complete JS code to achieve this functionality..

Kindly Suggest

Thanks

Abishek H

*This post is locked for comments

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,615 on at
    RE: JS code for Double click on individual subgrid to open case entity record

    This is very famous user training scenario.

    Everywhere in CRM, We will ask users to double click the grid row in white space to open a record rather than accidentally clicking the hyperlinks (owner for example)

    But only in manual many to many (N:N) intersect subgrid, we will ask users to click the hyperlink to open the needed record, rather than double click, as this will open the intersect entity what users are not technically aware of.

    Users need an extra click to open the lookup record from the intersect form.

    Otherwise on form load of intersect entity we have to navigate them to lookup record which will cause bad user experience.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: JS code for Double click on individual subgrid to open case entity record

    I still don't get why do you need a double click to open the record when you can just click on the case link which opens the record? I hope you are aware of this?

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,615 on at
    RE: JS code for Double click on individual subgrid to open case entity record

    Lookup column in the subgrid is the only supported way to do it.

    There are unsupported ways to attach double click event to subgrid rows, then open Entity form using the record guid.

    community.dynamics.com/.../183121

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: JS code for Double click on individual subgrid to open case entity record

    Hi Abishek,

    you can try on OnRecordSelect event and open the associated case entity record using Xrm.Utility.openEntityForm.

    Thank you

    Pankaj

    If found useful, please mark the answer as verified.

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: JS code for Double click on individual subgrid to open case entity record

    Hi Abishek

    I would suggest you to add another column which is lookup field of the case entity  which links to individual

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: JS code for Double click on individual subgrid to open case entity record

    My subgrid is referred to individual entity and i have a case entity field in that subgrid that is the case id, now when i double click anywhere in the subgrid record it should open the case entity record associated to that individual record

  • Suggested answer
    Clem Profile Picture
    Clem 2,541 on at
    RE: JS code for Double click on individual subgrid to open case entity record

    Hello,

    To which entity refers your subgrid ?

    There is no supported way to add a custom link or button to a cell within the subgrid.

    One idea which came to my mind could be to create a field of url type and dynamically fill it with the case link on the creation and then the user will be able to click on it.

    (to test).

    Clément

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans