-
How to return reference to home page of object in Salesforce when clicked on a button?
I need to override cancel button in VF page in Salesforce. I tried using return null in
public pageReference cancelButton() {
return null;
}But it is not going anywhere after clicking on Cancel button.
I tried to use:
PageReference oppPage = new ApexPages.StandardController(opp).view();
oppPage .setRedirect(true);
return oppPage ;Still, it is not working.
Does anybody have an idea how to navigate to Opp Home page if we click on cancel button in VF Page?
Log In to reply.
Popular Salesforce Blogs
Unveiling the Next Wave of Salesforce Analytics Cloud
Salesforce has successfully reformed its Wave Analytics Cloud. Wave Analytics as an evolving product is experiencing whole new features and is coming up with intuitive…
Using Batch Apex | Apex Developer Guide | Salesforce
Cluster Apex is utilized to run huge positions (think thousands or millions of records!) that would surpass ordinary preparing limits. Utilizing Batch Apex, you can…
Popular Salesforce Videos
4 Benefits of Salesforce Data Services (ETL)
When your enterprise needs to integrate data from a different application, Salesforce Data Services will help your company in Extracting, Transforming, and Loading the gathered…
Salesforce Training Videos 1 for beginners with RealTime Projects Salesforce Demo
This video explains what a primary level person should be doing after getting any Salesforce Project. What should be steps for the same.
Get Started with Process Builder
Get started with process builder -- and replace that ridiculously and ever-growing list of workflow rules with easier to understand, more extensible processes. This video…