Loading
Feature degradation | Gmail Email delivery failureRead More
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
          Paging

          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.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions

          You can combine paging with the Advanced Search feature. However, only in-database search is supported with paging. This is because in in-memory search, only the loaded list in the memory is searched. As a result, search isn’t performed on the data that is yet to be loaded.

          To enable paging for a list, set the paging attribute to True, as shown in this example.

          <ListObject name="LoCustomerOverview" generateLoadMethod="false" paging="true"xmlns="BoSchema.xsd"></ListObject>

          Paging Size

          For special lists, you can include new attributes to define the paging size of the lists to be loaded. In addition to the existing paging attribute, you can include these two attributes, initialLoadPageSize and reloadPageSize, in the root element for a ListObject contract as shown in this example.

          <ListObject name="LoPrmContracts" generateLoadMethod="true" filter="InDatabase" paging="true" schemaVersion="1.1" initialLoadPageSize="20" reloadPageSize="5">
          • initialLoadPageSize: Defines the number of records that are fetched from the SQLite database by using the datasource for the first load operation.
          • reloadPageSize: Defines the number of records that are fetched from the SQLite database for any further load operations.

          If you don’t define any of these attributes, it takes the default framework value of 200 rows.

          Example
          Example
          <ListObject name="LoIssueOverview" generateLoadMethod="false" schemaVersion="1.1" filter="InDatabase" paging="true">
            <DataSource name="DsLoIssueOverview" />
            <Item objectClass="LiIssueOverview" />
            <Methods>
              <Method name="beforeSaveAsync" />
              <Method name="afterSaveAsync" />
              <Method name="afterLoadAsync" />
              <Method name="beforeLoadAsync" />
              <Method name="afterDoValidateAsync" />
              <Method name="beforeDoValidateAsync" />
            </Methods>
            <AdvancedSearchObjects>
              <AdvancedSearchObject name="AsoIssue">
                <AdvancedSearchAttributes profileId="default">
                  <AdvancedSearchAttribute label="AsoIssue_Text" property="text" type="Text" />
                  <AdvancedSearchAttribute label="AsoIssue_IssueType" property="svcMetaPKey" type="Lookup" lookupProcess="ServiceRequest::MetaLookupForASOProcess" lookupProcessReturnValue="svcRequestMetaPKey" lookupObject="LuSvcRequestMeta" lookupObjectDisplayValue="text">
                    <Parameters>
                      <Input name="metaType" value="Issue" type="Literal" />
                      <Input name="issueType" value="CustomerIssue" type="Literal" />
                    </Parameters>
                </AdvancedSearchAttributes>
              </AdvancedSearchObject>
            </AdvancedSearchObjects>
          </ListObject>
          
           
          Loading
          Salesforce Help | Article