You need to sign in to do that
Don't have an account?
krishna casukhela 7
call apex class from javascript
Hello friends
I am just famliarisng myself with Javascript.
Can any one pls let me know in what real time scenario do we need to call a apex class / method using javascript with an specific example?
If SOQL query in apex method return 50K records is it a good practice to call apex method from javascript:?
thanks
krishna
I am just famliarisng myself with Javascript.
Can any one pls let me know in what real time scenario do we need to call a apex class / method using javascript with an specific example?
If SOQL query in apex method return 50K records is it a good practice to call apex method from javascript:?
thanks
krishna
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
When to use JS Remoting:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_when_to_use.htm
Let me know if this helps. Thanks :)
Option 1:- JavaScript Remoting
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
Option 2:- Web Service Method
http://blog.shivanathd.com/2014/07/call-apex-class-from-custom-button-salesforce.html
Please let us know if this will help you
Thanks
Amit Chaudhry
a)from project perspective which is a better option javascript remoting or using webservice.
b) if I am implementing webservice method is there any chance that governor limits will be effect ?
pls clarify
thanks
krishna
a)from project perspective which is a better option javascript remoting or using webservice.
Amit :- Try Option 2:- Web Service Method
b) if I am implementing webservice method is there any chance that governor limits will be effect ?
Amit:- No.