I hope this is a simple problem and I'm just missing something.
My Controller is something like this
public pagereference processtempcon(){
//some code here
delete record;
pagereference p = apexpages.Currentpage();
p.setredirect(true);
apexpages.Message msg = new Apexpages.Message(ApexPages.Severity.Info,'Total Number of Records Processed:' + selectedtempcon.size());
apexpages.addmessage(msg);
return p;
}
Which is not supported.Any Idea on this
Best Answer
So you want to reload the page an show some info in the message box. The
setRedirect(true)
parameter removes the info you want to show:I have created a simple example and it works fine:
Controller:
Page:
Result: