You need to sign in to do that
Don't have an account?
SrikanthKuruva
Refresh Parent Window
Hi All,
Following is the problem.
i have a vf page which on beign closed should refresh the parent window. Lets take the following example.
i created a custom link on Account which opens a vf page in a new window. When i click a button on the vf page the parent window (i.e. the account page) should refresh.
Any solutions are greatly appreciated.
Srikanth
Try putting "return false" part inside the onClick attribute
You may have difficulty making the parent window refresh as its from a different domain and exists in a separate window. I've found that you can refresh a standard page from a VF iframe embedded in it, so you may have to go that route. You'll probably need to put the link/button into the VF page, as that way the popup window will be able to communicate with its opener (which will be from the same domain also).
In the Script code,use ' window.parent.location'.
give parent window url in window.parent.location,
for ex:
function ref(){
window.parent.location = '/'+500Z0000000huiHIAQ;
}
here '500Z0000000huiHIAQ' is the id of parent record.in your Case give Account ID.