Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adding Javascript on chart refersh button

(0) ShareShare
ReportReport
Posted on by 571

hi,

I have added a Pie chart and on click on the refresh button i want to call the custom javascript. how to achieve this

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: Adding Javascript on chart refersh button

    Hi ,

    This is not a supported in dynamics CRM.

  • SamiraM Profile Picture
    SamiraM 571 on at
    RE: Adding Javascript on chart refersh button

    When chart is rendered it is having iframe and on that iframe scrolling is set to yes. Due to this scroll bars are coming. Using JavaScript I have set these scroll bars to no. But my issue is when chart is refreshed my js settings are gone. So I thought what to call my js on refresh button. Any thoughts if there is any other thing I can do to accomplish?

  • Verified answer
    Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: Adding Javascript on chart refersh button

    There's no supported way to do this.  However, since you're working on CRM 4.0 anyway, it's completely unsupported.  So in your browser, hit F12 to open the DOM Inspector and find out what this button is called.  then jump into your CRM server itself and search the ASPX pages to find that function call.  Insert your JS, Restart IIS, and you should be good to go.

    Note, this is highly likely to break everything, so back up your CRM before making changes like this.  Also, MS specifically says not to do this.

    Overall, it's a terrible idea, and you shouldn't do it. But you can.

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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans