You need to sign in to do that
Don't have an account?
Renu anamalla 17
can you tell me Realtime Scenario for Action function ?please
can you tell me Realtime Scenario for Action function ?please
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
What is Action Function in Salesforce?
It's easy to call a controller method for most of the attributes using action="{!Yourmethode_Name}", but what if you were to call the controller method from javascript?
One way to do this is by using Action Function. Expertise will definitely be able to use this in complex scenarios. This post is for those who haven't had hands-on action function before and want to know how to use it.
Let's take an Example and work on it:
You have a checkbox and you are calling a javascript function on click of this checkbox. And now once you are in js you wish to modify some variable or do something in your controller class.
Say you want to put some value for a variable in the controller and then display it on your page. this will require calling your class method from js.
Example :
Visualforce Page: Controller:
For more information please check with below link.
- http://www.cloudforce4u.com/2013/06/actionfunction-in-apex.html
- https://developer.salesforce.com/forums/?id=906F000000099I3IAI
Hope this helps.Please mark this as solved if the information helps.
Thanks,
Nagendra