web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

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
    Clem Profile Picture
    2,541 on at

    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

  • Community Member Profile Picture
    on at

    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
    gdas Profile Picture
    50,091 Moderator on at

    Hi Abishek

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

  • Suggested answer
    Community Member Profile Picture
    on at

    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
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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
    11,615 Moderator on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
TNJ_CRM_Team Profile Picture

TNJ_CRM_Team 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans