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

Announcements

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

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

I have the same question (0)
  • Verified answer
    Wayne Walton Profile Picture
    13,730 on at

    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.

  • SamiraM Profile Picture
    587 on at

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

    Hi ,

    This is not a supported in dynamics CRM.

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans