Skip to main content
Scott Mathers (SBH) 님이 #Trailhead Challenges에 질문했습니다
Hi there - I am currently experiencing this issue with a apex class controller that apends a pdf file to a record but also have this issue when I run visual flows from buttons that update field values on a record. The issue is the screen does not update to show the new values or in this case it does not refresh to show the that a quote pdf has now been attached.

 

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개
0/9000