How are you invoking webservice, is it through a method called on some button click? If yes then in the code of that method add this line before return statement:
pageRef.setRedirect(true);
Where pageRef is instance of PageRefernce defined in the code.
Hi,
How are you invoking webservice, is it through a method called on some button click? If yes then in the code of that method add this line before return statement:
pageRef.setRedirect(true);
Where pageRef is instance of PageRefernce defined in the code.
Hi Vinita,
I am calling webservice on Visualforce by Javascript directly when page is loaded. I have to refresh this page by web service.
Hi,
You can reload the page through JS before calling webservice, like:
window.opener.location.reload();
Hi Vinita,
Thanks, for your kind reply but It will not work it refresh only parent window.
Hello,
Is it inline VF? Then use,
window.location.reload(true);
Refer similar threads if i am misunderstanding your requirement:
http://forums.sforce.com/t5/forums/forumtopicprintpage/board-id/Visualforce/message-id/35166/print-single-message/false/page/1
http://boards.developerforce.com/t5/Visualforce-Development/How-to-refresh-the-page-from-the-visual-force-snippet/m-p/274821