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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can we make the record Clickable from the Calendar view into the portal?

(0) ShareShare
ReportReport
Posted on by

In a dynamic CRM portal, I want to jump into the record from the Calendar view of the entity.

PFA image for reference -

6237.Image.png

Can anyone help me with this? All the suggestions would be appreciated.

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nicholas Hayduk Profile Picture
    2,863 on at
    RE: Can we make the record Clickable from the Calendar view into the portal?

    Hi Jalak,

    Something like the following should work:

    $(document).ready(function() {

     $('.entitylist').on('mouseup', '.event-info', function() {

       window.location = '?id=' + $(this).data('event-id');

     });

    });

    You'll need to update the URL that the window.location is set to to point at your event details page, but otherwise that should do it.

    All we're doing is attaching a mouse-up event on the 'event-info' class for any descendant elements in our entity list calendar.  That element contains a data attribute which contains the ID of the event.  Note that I'm using mouse up instead of click because I believe the calendar code stops the propagation of the client event, so it doesn't work the first time you click it.

    Nick

  • GRedhead Profile Picture
    270 on at
    RE: Can we make the record Clickable from the Calendar view into the portal?

    Hi Nick,

    I'm trying to implement your solution above, can you explain in a bit more detail how you implement it, please?

  • Nicholas Hayduk Profile Picture
    2,863 on at
    RE: Can we make the record Clickable from the Calendar view into the portal?

    Add that code to the Custom JavaScript attribute of the Entity Form, or of the language-specific Localized Web Page that the Entity Form sits on, and update this line of code:

    window.location = '?id=' + $(this).data('event-id');

    to something like:

    window.location = '/url-of-your-event-details-page/?id=' + $(this).data('event-id');

    Nick

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans