How to Update Salesforce Status object in a custom Lightning Component

In Salesforce, maintaining the last update status of a view once it loads as a component can be tricky. JavaScript has an asynchronous way of executing after all. Resetting the counter after each component refresh from the custom refresh button may take a while to debug. Here is a way I resolved my problem. With a few tweaks here and there with some horse shoe fitting hope it helps your too.

salesforce status

Step 1: Create an attribute that shows the list status

salesforce developers

salesforce status

Step 2: Look in the component markup and place your attribute as per the requirement

salesforce lightnig

Step 3: Inside your JS Controller call the set Interval method inside the Init method

salesforce status

Step 4: Inside the helper call make the apex calls and query data

salesforce status

Step 5: Define the logic that updates the component

status on lightning

Posted in Salesforce cloud Implementation, Salesforce Lightning. Tagged with , , , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *