Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

uncaught typeerror : cannot read property 'ByQuery' of undefined

$
0
0

Hi all,

during my various developments on Dynamics CRM 2015 Online , I tried to put a javascript code inside a web resource. This web resource is inside an account web form.

More simple : my Account web form contains a web resource (html) in which I wrote some JS code.

The web resource uses a javascript code inside.

I imported the following files in my account : JQuery1.9.1.js and json2.js

I was unable to get the CrmRestKit property of a parent.window object.

Here is my code : parent.window.CrmRestKit.ByQuery('hli_vue360', columns, filter, false).then(function (data, status, xhr) { ... }

"parent" object references the parent web form.

I used the following combinations : "parent.window" , "window.parent" , "window" and "parent" with the same call (Crmrestkit) but with no effect.

Please advice


Viewing all articles
Browse latest Browse all 55831

Trending Articles