It is necessary to configure the filter CreatedBy=CurrentUser
in the mobile application.
The filter is saved in the file UsrMobileNotesModuleConfig
and referenced in the manifest.
The file is specified in the manifest:
},
"UsrMyNotes": {
"RequiredModels": [
"UsrMyNotes"
],
"ModelExtensions": [],
"PagesExtensions": [
"UsrMobileUsrMyNotesActionsSettingsBlyzenkoWS",
"UsrMobileUsrMyNotesGridPageSettingsBlyzenkoWS",
"UsrMobileUsrMyNotesRecordPageSettingsBlyzenkoWS",
"UsrMobileNotesModuleConfig"
]
}
Filter code:
Terrasoft.sdk.Module.addFilter("UsrMyNotes", Ext.create("Terrasoft.Filter", {
type: Terrasoft.FilterTypes.Group,
logicalOperation: Terrasoft.FilterLogicalOperations.And,
subfilters: [
{
property: "CreatedBy",
comparisonType: Terrasoft.ComparisonType.EQUAL,
value: Terrasoft.sdk.CurrentUser.getContactId()
}
]
}));
But it does not work. Please help.