You are here:
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.
| 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:
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: |
Boolean. Default is false. | No |
| blobTable | <needs info> | String | No |
| blobPkeyField | Dependent property of blobTable. | String | No |
<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>

