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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

JavaScript Library reference not working.

(0) ShareShare
ReportReport
Posted on by 227

Hello,

I have a custom button when you press it you are taken to another window to add Opportunity Products.  The main library's HTML contains these two pieces.  The KnockOut.simpleGrid3.js library holds the function being referred to in the second section that says new ko.simpleGrid.viewModel.  When I go to use IE's debugger and I check the 'Open Document' section my simpleGrid3 library is not an option and when I search for pieces of it it does not show up.  My questions is to see if anyone knows what might keep the referred to library from showing up in my debugger, which is causing errors.

 <script src="../../ClientGlobalContext.js.aspx"></script>
 <script src="../scripts/CRMPRD.Xrm.jquery.js" type="text/javascript"></script>
 <script src="../scripts/CRMPRD.Xrm.KnockOut.Source.js" type="text/javascript"></script>
 <script src="../scripts/CRMPRD.Xrm.KnockOut.SimpleGrid3.js" type="text/javascript"></script>
    <script src="../scripts/CRMPRD.Xrm.XrmServiceToolkit.js" type="text/javascript"></script>
    <script src="../scripts/CRMPRD.Xrm.json2.js" type="text/javascript"></script>

            this.gridViewModel = new ko.simpleGrid.viewModel({
                data: this.items,
                columns: [
                    { headerText: "", rowText: "isSelected" },
                    { headerText: "Product Name", rowText: "name" },
                    { headerText: "Product Code", rowText: "productCode" },
                    { headerText: "Sales Price", rowText: "currentCost" },
                    { headerText: "One-Time", rowText: "OneTime" },
                    { headerText: "Product Class Options", rowText: "productClassOption" }
                ],
                pageSize: 10
            });

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    Hi Mike,

    Sometimes F12 get stuck when using the "Find" search to spot pieces of JavaScript

    Have you tried to expand like this?

    How did you structure your solution? Is this a ribbon button that open a external window or a CRM html web resource?

  • Waqar Sohail Profile Picture
    on at

    can you share your webresources structure in the solution.

  • st738407 Profile Picture
    227 on at

    I found the issue, for some reason our consultant had a few unnecessary lines in the javascript. Once removed the library showed up again and functionality was returned. Thank you for your help.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans