I'm new to Dynamics CRM, with only a little background in JavaScript. I need some insight...
I'm trying to fix a form (Sales > Leads > New Lead) in a CRM project that someone else wrote but that has never worked correctly. The form contains a Product Categories list box that's apparently an iFrame within the main form.
Two web resources are associated with that list. One (new_PromptLeadProductPage.htm) has JavaScript functions onbodyload() and oncheck(). The other one (new_PromptLeadProductService.js) contains functions for fetching and sorting the product categories, including one named GetAllProducts.
The first line in onbodyload() is
var objProducts =parent.window.GetAllProducts();
When that line executes, I get an error in the console log, "Uncaught TypeError: parent.window.GetAllProducts is not a function".
What do I need in this statement in place of "parent.window" to refer to the function in the ...Service.js resource?
*This post is locked for comments