Force.com-JavaScript-REST-Toolkit
Force.com-JavaScript-REST-Toolkit copied to clipboard
Usage in Lightning
Hi, I was wondering how to use forcetk in Lightning.
I have a lightning component, where I've added forcetk and jQuery:
<ltng:require scripts="{!join(',',$Resource.forcetk,$Resource.jQueryMin_2_2_4)}" />
However, when I want to create the client in component's controller/helper, the following is not working:
var client = new forcetk.Client();
Do you have any ideas, what I might be doing wrong?
Hello,
I'm also facing the same issue on my Lightning Component. Is there any solution to resolve this issue?
Error: Uncaught TypeError: Cannot read property 'Client' of undefined throws at
On helper, the following is not working var client = new forcetk.Client();