You need to sign in to do that
Don't have an account?
Sanju118
Refresh Visualforce Page
Hi All,
I have created a Apex Detail page for Event. I have button on this Detail page which opens a Second Apex Page, Once I Click the Button on this new Popped Visual force Page, I need the Pop-Up window to be closed and the Parent Visual force window to be refreshed.
Please let me know, if any of us here has a solution for this.
Thanks All,
Sanjay
I have created a Apex Detail page for Event. I have button on this Detail page which opens a Second Apex Page, Once I Click the Button on this new Popped Visual force Page, I need the Pop-Up window to be closed and the Parent Visual force window to be refreshed.
Please let me know, if any of us here has a solution for this.
Thanks All,
Sanjay
Hi,
I don't know you have found the solution for your problem or not but I was just searching for something else and found this. Following is the code for window refresh.
I have made changes in your code only.
All Answers
<script>
parent.window.opener.location.reload();
parent.window.close();
</script>
however, I tried to put this in the onclick event of the button and got some errors while using it in IE.. and after opening a few times the popup window I wasn't able to load any SF page.. My solution to this issue was the following:
Created a VF page only for closing purposes:
And then assigned the following action to my button:
I tried your approach, but this immediately closes the pop up page and refreshes the Parent Window,
However Users have to do some work on the pop up window and then once they press the Button , this action should take place...
Please let me know, if anyone around also can also help me on this..
Page Code -
Controller -
Hi,
I don't know you have found the solution for your problem or not but I was just searching for something else and found this. Following is the code for window refresh.
I have made changes in your code only.