You need to sign in to do that
Don't have an account?
Luffy Carl_op
Two buttons with one action.
there is a table in my visualforce page, i want to find out my report with two ways, for exmple, there are show all reports and show reports in this month. they both point to one list in controller. so, how can i judge which one clicked?
When you click button on a VF page you can call appropriate action, invoking respective method within the Controller Class. And if your need is to invoke the same method but wish to identify the button from which it is invoked then you can use <apex:param> component.
Example:
VF Page -
Controller Code -
Thanks
AR
If the reply was useful and solved your problem then please mark it as best answer.