+ Start a Discussion
sreeesreee 

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

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

vamshi(Nani)vamshi(Nani)

Hi,

 I think try this way... suppose there is 2 methodes A,B. So, first of all call A method from button.
And In method 'A' call the method 'B'. This is my Idea. If you have better post on the same with the code.


Ashish_SFDCAshish_SFDC

Hi Srikanth,

 

Use the oncomplete function as below,   

 

<apex:actionFunction name="Method1" action="{!Method1}" oncomplete="Method2();" />

 

Regards,

Ashish

 

 

Ashish_SFDCAshish_SFDC

Hi Srikanth, 

 

You can also use javascript, see the sample code in the link below, 

 

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

 

Regards,

Ashish