how to add js lib ref to workplace view? RRS feed

  • Question

  • Hello, I have a case form which has a case.js webresource. The case form has jquery associated as a form library. I have added a ribbon button which is associated with the case homepage (ex: workplace > cases).

    The related js method I have added to case.js for the new button calls $.parseJSON(req.responseText). However, this js is returning the error "$ is undefined."  This seems to be because the jquery js lib is not associated with the Workplace view.  

    Do you know how to associate the jquery js script lib to this view? If this is not possible then can you recommend an alternate method to $.parseJSON() that uses native js/xrm and does not rely on jQuery?  Thanks!

    Thursday, February 20, 2014 10:03 PM