Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Loading dependent jscript libraries in ribbon custom button intermittently not working.

Posted on by 360

Hi Guys,

I am facing issue to add dependent JavaScript web resource file to use my custom action function which is written in another JavaScript file. 

To add dependent JS file web resource, used isNaN function, however it is not working on a specific entity's ribbon(able to add dependent JS file on other entity's ribbon same way).

4530.RIbbon.PNG

Have any one idea to resolve this issue? Please suggest.

*This post is locked for comments

  • Suggested answer
    amritesh Profile Picture
    amritesh 360 on at
    RE: Loading dependent jscript libraries in ribbon custom button intermittently not working.

    Hi,

    Finally I got this solution. Root cause of this issue is that JavaScript namespace has been conflicted to other Javascript WebResource which is added on the entity form.

    That's why this issue has been occurred.

    I have changed the namespace one of the file and now issue has been gone.

  • amritesh Profile Picture
    amritesh 360 on at
    RE: Loading dependent jscript libraries in ribbon custom button intermittently not working.

    Hello,

    I have moved dependent function to Disable Rule with my custom Javascript function, but no luck !

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Loading dependent jscript libraries in ribbon custom button intermittently not working.

    Hello,

    Just a quick suggestion - try to move your dependent function to Disable Rule with custom javascript function option with the same registration parameters. I use this approach and never had issues with it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans