Thursday 6 September 2012

Override the Standard Display for a Page - Visualforce

The Visualforce page you created in Tutorial #4: Using Standard Controllers can function as a replacement to the standard detail page for an account. You can modify the standard user interface generated by the platform to ensure that your page gets shown instead of the standard page.
  1. Click Setup | Customize | Accounts | Buttons and Links.
  2. Click Edit next to the View item in the Standard Buttons and Links list.
  3. For Override With, select Visualforce Page.
  4. From the Visualforce Page drop-down list, select accountDisplay.
  5. Click Save.
    A Screen of the Override Page
    To see this in action, select the Accounts tab and then choose an account. Your page displays instead of the default. You’ve successfully configured the platform to automatically pass in that ID parameter to your page.
  6. Follow the same procedure to reverse the override, so you can view the default page on the next lesson.

No comments:

Post a Comment