function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
balraj singh 33balraj singh 33 

i need to refresh pageblocktable after delete . please suggest

User-added image
Khan AnasKhan Anas (Salesforce Developers) 
Hi Balraj,

I trust you are doing very well.

You can use pageReference in the controller and remove rerender from commandLink.
 
public PageReference mydelete(){
        // Delete actions
 
        PageReference pr = new PageReference(System.currentPageReference().getURL());
        pr.setRedirect(true);
        return pr;
}

 
I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas
Bhargavi TunuguntlaBhargavi Tunuguntla
Hi

Try rerendering the PageBlock in 'commandLink' tag.

Thanks.