You need to sign in to do that
Don't have an account?
Marco_____
Page reference with VF included in Page Layout
I've created a VF page with a standardcontroller (User) and 1 extension
the extension is doing a pagereference after an action to move to another page.
pagereference MyPage= new PageReference('http://www.google.com');
MyPage.setRedirect(true);
return MyPage;
this VF page is inside the Page layout and it only works inside the iframe.
I would like to redirect the full frame to my page.
Any idea?
Hi ,
I think you first should come to javascript on oncomplete event .
then where you should write code like
window.opener.location = "http://www.google.com" ;
Thanks.
Kirtesh
All Answers
What is the action you are using?
If you're using commandlink or commandbutton use target="_parent" as an attribute. Hope you are not using a frame within a frame
Hi ,
I think you first should come to javascript on oncomplete event .
then where you should write code like
window.opener.location = "http://www.google.com" ;
Thanks.
Kirtesh
i've used the oncomplete event successfully.
<apex:commandbutton value="do it" action="{!doIt}" oncomplete="window.top.location={!newUrl}"/>
My controller:
Void doIt(){
....
newURL= object__c.id;
}
A big thanks to Kirtesh