This tutorial will explain to you on how to detect if a visualforce page is embedded inside of a detail page layout.
To be able to detect if a VF is being on a page layout in an inline section from a custom apex controller. The following code needs to be implemented. You can tweak around the code to mean your requirement.
Moreover you can use the very same Visualforce to override buttons like "New" and "Edit" so that you can have only one Visualforce page to for different operation like creation of a new record or editing the record.
No comments:
Post a Comment