+ Start a Discussion
sreeesreee 

How to call Two methods in One Button click

How to call Two methods in  One Button click???????????thx in advance

Jake GmerekJake Gmerek
Create a method that calls the other two and call that method. If you need more detail, let me know.
RockzzRockzz

Hi Sree..

 

 

I hope this will help you!

 

You can use use apex:actionfunction and javascript to fulfill your requirement. ignore the parameter passing in following example.

 

http://www.salesforceworld.blogspot.com/2011/06/parameter-passing-using.html

 

If you want call methods according to any condition, you can write your condition in javascript function.

 

In Button u have to mention Vf page Name...

 

 

Thanks,

Cool Sfdc