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
          addItemChangedBatchEventListener()

          addItemChangedBatchEventListener()

          There are two ways to instantiate a lightweight list in your code. The approach you choose depends on whether the lightweight list is a pure lightweight list or if it is combined with a standard list.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Description

          This function registers an event handler and is used when list item changed events should be returned as a batch. This is performed by suspending and resuming the list to return the stored list of events as a batch. Since there can only be one batch listener associated to a list, upon having more than one batch listener for a list, only the latest batch listener is considered.

          Parameters

          • List object name (host reference) : string
          • Item change event name : triggered for batch
          • Object : host

          Example

          There are two forms:

          Form Description
          me.addItemChangedBatchEventListener('loCheckInPayment',me.onCheckInItemChanged);
          Here, the parameters are: list object name / host reference and Item change event name.
          me.get('loCustomerPOSRelation').addItemChangedBatchEventListener(me.onPOSChanged,me, 'loCustomerPOSRelation')
          Here, the get function of a list object is preceding the addItemChangedBatchEventListener function call, with the parameters: Item change event name, host and host reference/ list object name.
           
          Loading
          Salesforce Help | Article