Hi can anybody guide me how to call a method in controller from a VF page.
Tell me more
×
Salesforce Stack Exchange is a question and answer site for
Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
There are two methods to do this : 1)Use @Remote Action Call to call the method 2)Use ACtion Function and call on the event Here are the documentations for the same http://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm Video of demo sessions https://www.youtube.com/watch?v=ckkChgcM9VQ Summary :Use actionfunction if you need to maintain state between postbacks, remoteaction for stateless invocations |
|||||||
|
Apex method:
Visualforce page action function:
actionFunction works like a javascript function, so you can call it from anywhere at your page like this:
|
|||
|