Skip to main content
Version: 8.0

Set up the model configuration in the mobile app

Level: advanced
Example

Add the following model configurations to the manifest:

  1. Contact. Specify list page, view and edit page schema names, required models, model extension modules and model pages.
  2. Contact address. Specify only the model extension module.

Example implementation

Models property
// Importing models.
"Models": {
// "Contact" model.
"Contact": {
// List page schema.
"Grid": "MobileContactGridPage",
// Display page schema.
"Preview": "MobileContactPreviewPage",
// Edit page schema.
"Edit": "MobileContactEditPage",
// The names of the models the "Contact" model depends on.
"RequiredModels": [
"Account", "Contact", "ContactCommunication", "CommunicationType", "Department",
"ContactAddress", "AddressType", "Country", "Region", "City", "ContactAnniversary",
"AnniversaryType", "Activity", "SysImage", "FileType", "ActivityPriority",
"ActivityType", "ActivityCategory", "ActivityStatus"
],
// Model extensions..
"ModelExtensions": [
"MobileContactModelConfig"
],
// Model page extensions.
"PagesExtensions": [
"MobileContactRecordPageSettingsDefaultWorkplace",
"MobileContactGridPageSettingsDefaultWorkplace",
"MobileContactActionsSettingsDefaultWorkplace",
"MobileContactModuleConfig"
]
},
// "Contact addresses" model.
"ContactAddress": {
// List, display and edit pages were generated automatically.
// Model extensions..
"ModelExtensions": [
"MobileContactAddressModelConfig"
]
}
}