Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Automatic Refresh of Card

          Automatic Refresh of Card

          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>
           
          Loading
          Salesforce Help | Article