The auto refresh feature in Consumer Goods Cloud Mobile App Framework refreshes the
content of a subscribed card container at specified intervals. You enable it using the
onAutoReload card event in the card container. You can subscribe up to three cards.
Required Editions
Available in: Lightning Experience in Performance, Unlimited, and Enterprise Editions
that have Consumer Goods Cloud enabled.
Define an interval from 5 to 3,600 seconds with the intervalInSeconds attribute. Auto refresh
isn’t trigger if the interval isn’t in the defined range or isn’t an integer.
The onAutoReload event is triggered after the specified interval elapses. If a new onAutoReload
event is triggered because of another event before the existing interval elapses, the timer is
restarted. This action helps avoid unnecessary reloads.
If a card container subscribes to the onAutoReload event and the onDateChange event, the
onDateChange event is ignored at run time.
Sample Code
<CardContainer name="CardExampleAutoReload" loadPriority="2">
<CardEventSubcription>
<CardEvent name="onAutoReload" intervalInSeconds="%IntervalValue%"/>
</CardEventSubcription>
<!-- left out details for brevity -->
</CardContainer>
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.