You need to sign in to do that
Don't have an account?
Alex Sh
Call PageReference method in another void method within one class
Hi All!
How can I call PageReference method in another void method within one class? I try like this, but nothing happens when I click button:
public PageReference Method1() {
...
}
public void Method2() {
Method1();
}
May I suggest You please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/88210/can-a-page-reference-method-be-called-from-within-a-void-method
- https://salesforce.stackexchange.com/questions/57956/void-method-inside-of-pagereference-method-does-not-fire
Hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar