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
          List Object Contracts

          List Object Contracts

          List objects are containers for list items used in the Consumer Goods offline mobile app.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions

          List objects themselves aren’t visible entities in the app's user interface. However, the list items that the list object defines are visible. Use the sf modeler workspace add command and follow the instructions in the guided setup to create a list object contract for a new or existing business object, or a module. When you create a list object by using this guided setup, the corresponding list item and the DoValidateAsync, loadAsync, and SaveAsync methods are created automatically for the list object. For more information, see Create Resources Easily Using the Add Workspace Command.

          Reference a List Object in a Business Object

          If the business object-dependent list information needs to be available as soon as a business object is loaded, reference the list object in a business object under <ListObject>. For example, if you select a customer in the master section of a page, preload its dependent address list objects so that if the user taps the Address tab, all addresses for the customer are immediately shown. You can also show a list object's list items even if a corresponding business object hasn’t been loaded. This means that you can access the simple properties of the list items without the overhead of loading an entire business object. If necessary, you can load the business object when a list item is selected.

          • List Object Contract Definition
            Know about the elements and attributes that you can use to define a List Object contract.
          • Define Advanced Search
            The AdvancedSearch feature helps you filter your search based on certain criteria. You can define the advanced search capability in the ListObject contract by defining the searchable property on a grouped list.
          • Paging
            Use the paging feature to load data from the database to the memory on a page-by-page basis. You can use paging when there is a large amount of data to load in a list. After the first set of data loads, you can work on the user interface and then scroll to the end of the loaded list when the next set of records loads from the database.
          • List Item
            List items are visible entities in a list in the app's user interface. You can edit and save the values of a list item by using the methods provided by its respective list object.
           
          Loading
          Salesforce Help | Article