You need to sign in to do that
Don't have an account?
Navigating to parent of embedded VF page
I have a VF page embedded in a page layout, and I'm trying to recreate some of the related list functionality. The issue I'm having is when I create a "View" link, when you click on it it goes to the record within the VF page scope embedded in the main page, when what I really want to do is to redirect the main page to the record. Does anyone have any suggestions on how to do this?
So...
Account Page Layout.
VF page as part of the Page Layout that shows a list of related objects.
When I click on a link to view the records, scope remains within the VF page scope, main page doesn't change.
Thanks in advance!
Hi,
Try the Target attributes of command Link or A tag. Set the Target attributes as "_parent".
For example:
<apex:commandLink action="http://google.com" value="View" id="theCommandLink" target="_parent" rev="http://google.com"/>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
Hi,
Try the Target attributes of command Link or A tag. Set the Target attributes as "_parent".
For example:
<apex:commandLink action="http://google.com" value="View" id="theCommandLink" target="_parent" rev="http://google.com"/>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
I ended up using target="_top" and that did the trick.