Slaesforce FAQ

how to refresh page in apex salesforce

by Johnson Altenwerth Published 3 years ago Updated 2 years ago
image

You can refresh your page by two ways. In yourmethod put pagereference code and give the same link. public pagerefrence methodname () { return new PageReference ('/apex/VFPage'); }

You can refresh your page by two ways.
  1. In yourmethod put pagereference code and give the same link. public pagerefrence methodname(){ return new PageReference('/apex/VFPage'); }
  2. Put oncomplete in your commandlink and reload the page using javascript: oncomplete="window.location.reload();"
Feb 6, 2017

Full Answer

How do I refresh a page in Apex?

3 Ways to Refresh Oracle APEX Page Automatically Every 3 SecondsetTimeout("location.reload(true);", 3000);$(document). ready(function() { // auto refresh page after 3 second setInterval('loadPage()', 3000); });function loadPage() { location. reload(); }

How do I refresh a page in Salesforce?

To refresh a view, run $A. get('e. force:refreshView'). fire(); , which reloads data for standard components.

How do you refresh apex in LWC?

To refresh Apex data provisioned via an Apex @wire , call refreshApex() . The function provisions the data using the configuration bound to the @wire and updates the cache. Note The parameter you refresh with refreshApex() must be an object that was previously emitted by an Apex @wire .

How do you refresh the page on button click with lightning component?

you can use $A. get("e. force:refreshView"). fire(); to refresh View.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9