Loading
Feature Disruption - Service Cloud VoiceRead More
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
          Simple Properties

          Simple Properties

          To associate the properties of a business object to the user interface elements, bind simple properties. You can manipulate simple properties by using the getter and setter functions.

          The SimpleProperties node doesn’t have any attributes, but it consists of a list of SimpleProperty sub nodes. This table lists the attributes of SimpleProperty.

          Attributes for SimpleProperty
          Attribute Description Value/Pattern Required
          id Specifies whether the simple property is the property that identifies the business object. You must define one simple property as the id property. Boolean. Default is false. Yes
          name Specifies the unique name of the simple property. Yes
          type

          Specifies the data type or also called the domain of the simple property. The Domains listed here exist in the Domain.xml file which can be reused. Domains are mapped against Salesforce data types.

          There are three base domain types used in the CG Cloud offline app:

          • String domain type
            • DomText (length: 256 characters)
            • DomString (length: 30 characters)
            • DomLongText (length: 2147483647 characters)
            • DomLongText (length: 2147483647 characters)
          • Decimal domain type
            • DomDecimal (length: 15, 6)
            • DomPercentage (length: 6, 2)
            • DomMoney (length: 19, 6)
          • Toggle domain type, similar to picklists
            • DomBool
            • DomPrdLogisticUnit
          • DomPKey
          • DomSysStatus
          • DomId
          • DomDate
          • DomSdoPhase
          • DomInteger
          • DomEmail

          Every Salesforce picklist needs a mapping to a toggle defined in the Domain contract if it is used in mobile app.

          Whenever a matching domain is used, reuse the domain instead of adding a new domain.

          Yes
          storable Specifies whether the property can be stored in the database. Boolean. Default is false. No
          dataSourceProperty

          Specifies the mapping to a data source attribute. Enter the attribute name from the data source of the business object.

          Every simple property which should be filled through data source fields should be mapped to a data source property.

          String No
          nullable

          Add a nullable attribute to a SimpleProperty and set it to true. This updates the SimpleProperty with a NULL or empty value, even when a value is already specified.The sample code describes how to set the nullable attribute for a SimpleProperty:

          <SimpleProperty name="discount" type="DomPercentage" storable="true" dataSourceProperty="discount" nullable="true"/>
          Boolean. Default is false. No
          blobTable <needs info> String No
          blobPkeyField Dependent property of blobTable. String No
          Example
          Example
          <SimpleProperties>
             <SimpleProperty name="MyTest" type="DomPKey" id="true" dataSourceProperty="MyTest" />
             <SimpleProperty name="Street" type="DomText" id="false" dataSourceProperty="Street" >
             <Events>
                <Event name="onChanged" eventHandler="onPropertyChanged" />
             </Events>
            </SimpleProperty>
          </SimpleProperties>
          
           
          Loading
          Salesforce Help | Article