function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pintoo rajputpintoo rajput 

How can call a visualforce page using command button and return to the parent page with result

Dear All,
             Please solve my problem
Abhi_TripathiAbhi_Tripathi
Hi Pintoo,

for this you need to create a method having return type PageReference, then call that method on click of the button, it will return your desired page.

For example

public pageReference parentPage () {

          return new pageReference('/apex/003');
}

Regards,
Abhi Tripathi
Salesforce Certified Developer 
pintoo rajputpintoo rajput
Dear All, I have a problem in creating a test class mainly calling the wrapper class method please solve it i have attached a file below. Thank You.
Abhi_TripathiAbhi_Tripathi
Pintoo,

Go for this post, this will surely help you, their is no new method for Wrapper Classes in test class.
http://abhithetechknight.blogspot.in/2013/10/salesforce-test-class-basics.html


Regards,
Abhi