I have read some other forum posts and followed the suggestions but while I dont get errors the screen (firefox) typically needs to be manuallty refreshed to show the new attached file or in the case of some of my visual flows the new screen values.
In this particular apex class here is the redirec code I use:
//redirect the user
PageReference pageWhereWeWantToGo = new ApexPages.StandardController(a).view(); //we want to redirect the User back to the Quote detail page
pageWhereWeWantToGo.setRedirect(true); //indicate that the redirect should be performed on the client side
return pageWhereWeWantToGo;
Returning the user back to the page with the button that ran the code should it not refresh the screen??? Other solutions I saw suggested it should. Likewise on screen buttons that run visual flow, I redirect back to the record detail screen typically but the user still needs to manaully refresh the browser. I dont understand why this is so difficult. Any advice is much appreciated (I was not able to post in the developer forum so did it here)
답변 1개
Hi Scott,
Sorry for the inconvenience. In case you don't receive a response here, may I also suggest joining the Developer forums below to collaborate with the experts for best practice and advice.
https://developer.salesforce.com/forums
https://salesforce.stackexchange.com/
Hope this helps.
Regards,
Jayson