Коллеги нужна помощь по мобильной версии
Установил пакет FieldForce на проект - 7.13.4
При синхронизации получаю ошибку - Terrasoft.Common.ItemNotFoundException: Item with name "Order" not found
at Terrasoft.Core.ManagerItemCollection`1.GetByName(String name)
at Terrasoft.Core.Manager`2.GetInstanceByName(String name)
at Terrasoft.Mobile.MobileModelGraph.CalculateModelDependencies(String modelName, EntitySchemaManager schemaManager, HashSet`1 graphNodeNames, List`1 graphNodes)
at Terrasoft.Mobile.MobileModelGraph.Build(EntitySchemaManager schemaManager)
at Terrasoft.Mobile.MobileManifest.BuildModelGraph()
at Terrasoft.Mobile.MobileManifest.Load(IEnumerable`1 manifestBodies, Boolean buildModelGraph)
at Terrasoft.Mobile.MobileUtilities.GetLoadedManifest(String workplaceCode)
at Terrasoft.Mobile.MobileUtilities.GetAppMetadata(HttpContextBase context)
at Terrasoft.WebApp.Mobile.Services.MobileCodeService.ProcessRequest(HttpContext context)
0
Попробовал заместить файл манифеста и вставить этот код
"Remove": {
"SyncOptions": {
"ModelDataImportConfig": [
{
"Name": "Activity",
"SyncColumns": [
"Order"
]
}
]
},
"Models": {
"Activity": {
"RequiredModels": [
"Order"
]
}
}
},
Но ничего не помогло. Подскажите кто знает как правильно удалить из манифеста ненужную модель
Нравится
Пакет «bpm’online field sales» должен ставиться на продукт «bpm’online sales enterprise». Если у Вас он установлен на другой продукт, где нет раздела Order, то может не работать не только он, а и другие отсутствующие разделы и детали.
Зверев Александр,
Спасибо я понимаю, но все таки можете подсказать ответ на мой вопрос?
Это не единственные упоминания в манифесте. Как минимум, ещё будет «{"Name":"Order"}».
Зверев Александр,
вот базовый манифест из FieldForce, можете пожалуйста на примере показать как в замещенном манифесте убрать все упоминания об Order и OrderProduct если вам не сложно.
{ "DisableHybridMode": true, "CustomSchemas": [ "MobileActivityActionsUtilities", "FieldForceMobileLookupGridPageConfig", "MobileActivityCacheManager" ], "SyncOptions": { "SysSettingsImportConfig": [ "CheckInRadius" ], "SysLookupsImportConfig": [], "ModelDataImportConfig": [ { "Name": "Activity", "SyncFilter": { "property": "Participant", "modelName": "ActivityParticipant", "assocProperty": "Activity", "operation": "Terrasoft.FilterOperations.Any", "valueIsMacros": true, "value": "Terrasoft.ValueMacros.CurrentUserContact" }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "Activity", "items": { "ActivityParticipant": { "filterType": 5, "subFilters": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "ActivityParticipant", "items": { "detailedFilter": { "filterType": 1, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 }, "leftExpression": { "expressionType": 0, "columnPath": "Participant" }, "comparisonType": 3 } } }, "leftExpression": { "expressionType": 0, "columnPath": "[ActivityParticipant:Activity].Id" } } } }, "SyncColumns": [ "Title", "StartDate", "DueDate", "Status", "Result", "DetailedResult", "ActivityCategory", "Priority", "Owner", "Account", "Contact", "ShowInScheduler", "Author", "Type", "Order", "AllowedResult", "ProcessElementId", "DurationInMnutesAndHours" ] }, { "Name": "ActivityParticipant", "SyncByParentObjectWithRights": "Activity", "HistoricalColumns": ["Activity.ModifiedOn"], "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "ActivityParticipant", "items": { "ActivityFilter": { "filterType": 5, "leftExpression": { "expressionType": 0, "columnPath": "Activity.[ActivityParticipant:Activity].Id" }, "subFilters": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "ActivityParticipant", "items": { "ParticipantFilter": { "filterType": 1, "comparisonType": 3, "leftExpression": { "expressionType": 0, "columnPath": "Participant" }, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 } } } } } } }, "SyncColumns": [ "Activity", "Participant" ] }, { "Name": "ActivityCategoryResultEntry", "SyncColumns": [ "ActivityResult", "ActivityCategory" ] }, { "Name": "ActivityCorrespondence", "SyncColumns": [ "Activity", "IsDeleted", "SourceActivityId", "SourceAccount", "CreatedInBPMonline" ] }, { "Name": "Contact", "SyncColumns": [ "Name", "Account", "Department", "JobTitle", "Photo", "Type" ] }, { "Name": "ContactAddress", "SyncByParentObjectWithRights": "Contact", "SyncColumns": [ "AddressType", "Country", "Region", "City", "Address", "Zip", "Contact", "Primary" ] }, { "Name": "ContactAnniversary", "SyncByParentObjectWithRights": "Contact", "SyncColumns": [ "Date", "AnniversaryType", "Contact" ] }, { "Name": "ContactCommunication", "SyncByParentObjectWithRights": "Contact", "SyncColumns": [ "Number", "CommunicationType", "Contact" ] }, { "Name": "Account", "SyncColumns": [ "Name", "PrimaryContact", "Industry", "GPSN", "GPSE", "Address", "Type", "City" ] }, { "Name": "AccountAddress", "SyncByParentObjectWithRights": "Account", "SyncColumns": [ "AddressType", "Country", "Region", "City", "Address", "Zip", "Account", "Primary", "GPSN", "GPSE" ] }, { "Name": "AccountAnniversary", "SyncByParentObjectWithRights": "Account", "SyncColumns": [ "Date", "AnniversaryType", "Account" ] }, { "Name": "AccountCommunication", "SyncByParentObjectWithRights": "Account", "SyncColumns": [ "Number", "CommunicationType", "Account" ] }, { "Name": "SysImage", "SyncFilter": { "property": "HasRef", "value": true }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "SysImage", "items": { "ExistContactPhoto": { "filterType": 5, "leftExpression": { "expressionType": 0, "columnPath": "[Contact:Photo].Id" }, "subFilters": { "items": {}, "logicalOperation": 0, "filterType": 6, "rootSchemaName": "Contact" } } } }, "SyncColumns": [ "Name", "HasRef", { "Name": "PreviewData", "UseRecordIdAsFileName": true, "ImportBinaryData": true } ] }, { "Name": "VwRemindings", "SyncFilter": { "property": "Contact", "valueIsMacros": true, "value": "Terrasoft.ValueMacros.CurrentUserContact" }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "VwRemindings", "items": { "ContactCurrentUser": { "filterType": 1, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 }, "leftExpression": { "expressionType": 0, "columnPath": "Contact" }, "comparisonType": 3 } } } }, { "Name": "Department", "SyncColumns": [] }, { "Name": "ActivityPriority", "SyncColumns": [] }, { "Name": "ActivityType", "SyncColumns": [] }, { "Name": "ActivityCategory", "SyncColumns": [ "ActivityType" ] }, { "Name": "ActivityStatus", "SyncColumns": [ "Finish" ] }, { "Name": "CommunicationType", "SyncColumns": [ "UseforContacts", "UseforAccounts" ] }, { "Name": "AddressType", "SyncColumns": [ "ForAccount", "ForContact" ] }, { "Name": "Country", "SyncColumns": [] }, { "Name": "Region", "SyncColumns": [ "Country" ] }, { "Name": "City", "SyncColumns": [ "Country", "Region" ] }, { "Name": "AnniversaryType", "SyncColumns": [] }, { "Name": "AccountIndustry", "SyncColumns": [] }, { "Name": "ActivityResult", "SyncColumns": [ "Category" ] }, { "Name": "ActivityParticipantRole", "SyncColumns": [ "Code" ] }, { "Name": "KnowledgeBase", "SyncColumns": [ "Code", "Type" ] }, { "Name": "KnowledgeBaseType", "SyncColumns": [ "Description" ] }, { "Name": "KnowledgeBaseFile", "SyncByParentObjectWithRights": "KnowledgeBase", "SyncColumns": [ "Notes", { "Name": "Data", "UseRecordIdAsFileName": false, "ImportBinaryData": true }, "Type", "KnowledgeBase" ] }, { "Name": "FileType", "SyncColumns": [ "Code" ] }, { "Name": "FieldForceActionsInRule", "SyncColumns": [ "FieldForceRule", "FieldForceActionType", "Priority", "Require", "Name" ] }, { "Name": "FieldForceActionsKnowledgeBase", "SyncColumns": [ "ActionInRule", "KnowledgeBase" ] }, { "Name": "FieldForceActionType", "SyncColumns": [ "Name", "Code", "ReadOnly" ] }, { "Name": "FieldForceRules", "SyncColumns": [ "StartDate", "DueDate", "VisitCount", "Duration", "VisitCategory" ] }, { "Name": "VisitActions", "SyncFilter": { "property": "Activity.Owner", "valueIsMacros": true, "value": "Terrasoft.ValueMacros.CurrentUserContact" }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "VisitActions", "items": { "ActivityOwnerCurrentUser": { "filterType": 1, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 }, "leftExpression": { "expressionType": 0, "columnPath": "Activity.Owner" }, "comparisonType": 3 } } }, "SyncColumns": [ "Action", "IsComplete", "Activity", "CompleteTime" ] }, { "Name": "CheckInOutResult", "SyncFilter": { "property": "Activity.Owner", "valueIsMacros": true, "value": "Terrasoft.ValueMacros.CurrentUserContact" }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "CheckInOutResult", "items": { "ActivityOwnerCurrentUser": { "filterType": 1, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 }, "leftExpression": { "expressionType": 0, "columnPath": "Activity.Owner" }, "comparisonType": 3 } } }, "SyncColumns": [ "GpsX", "GpsY", "ActionTime", "IsCheckIn", "Activity" ] }, "CheckInVerificationStatus", { "Name": "ActivityFile", "SyncByParentObjectWithRights": "Activity", "SyncFilter": { "property": "Activity.Owner", "valueIsMacros": true, "value": "Terrasoft.ValueMacros.CurrentUserContact" }, "QueryFilter": { "logicalOperation": 0, "filterType": 6, "rootSchemaName": "ActivityFile", "items": { "ActivityOwnerCurrentUser": { "filterType": 1, "rightExpression": { "expressionType": 1, "functionType": 1, "macrosType": 2 }, "leftExpression": { "expressionType": 0, "columnPath": "Activity.Owner" }, "comparisonType": 3 } } }, "SyncColumns": [ "Id", "Name", { "Name": "Data", "UseRecordIdAsFileName": false, "ImportBinaryData": true }, "Activity", "Type" ] }, { "Name": "Order", "SyncColumns": [ "Number", "Account", "Date", "Amount", "Currency" ] }, { "Name": "OrderProduct", "SyncByParentObjectWithRights": "Order", "SyncColumns": [ "Name", "Product", "Price", "Order", "Quantity", "Unit", "Amount", "Tax" ] }, { "Name": "Product", "SyncColumns": [ "Name", "Type", "Category", "Unit", "Price", "Currency", "TradeMark", "Tax", "Owner" ] }, { "Name": "ProductType", "SyncColumns": [ "Name", "IsService", "Category" ] }, { "Name": "Currency", "SyncColumns": [ "Name", "Symbol", "Division" ] }, { "Name": "CurrencyRate", "SyncColumns": [ "StartDate", "EndDate", "Currency", "Rate" ] }, { "Name": "ProductCategory", "SyncColumns": [ "Name" ] }, { "Name": "TradeMark", "SyncColumns": [ "Name" ] }, { "Name": "Unit", "SyncColumns": [ "Name", "ShortName" ] }, { "Name": "ProductUnit", "SyncColumns": [ "Product", "Unit", "IsBase", "NumberOfBaseUnits" ] }, { "Name": "Tax", "SyncColumns": [ "Name", "Percent" ] }, { "Name": "ProductCatalogueLevel", "SyncColumns": [ "Position", "ColumnPath", "ReferenceSchemaName" ] }, { "Name": "Pricelist", "SyncColumns": [] }, { "Name": "ParticipantResponse", "SyncColumns": [] }, { "Name": "ProductInAccount", "SyncColumns": [ "Account", "Product" ] }, { "Name": "ActivitySKU", "SyncColumns": [ "Activity", "Product", "Price", "Balance", "Presence", "Comment" ] }, { "Name": "AccountType", "SyncColumns": [] }, { "Name": "ContactType", "SyncColumns": [] } ] }, "Modules": { "Contact": { "Position": 0, "Hidden": false }, "Account": { "Position": 1, "Hidden": false }, "Activity": { "Position": 2, "Hidden": false }, "SocialMessage": { "Position": 3, "Hidden": false, "HiddenUIV1": true }, "ConfItem": { "Hidden": true }, "Case": { "Hidden": true }, "Problem": { "Hidden": true }, "ServicePact": { "Hidden": true }, "ServiceItem": { "Hidden": true }, "Campaign": { "Hidden": true }, "KnowledgeBase": { "Hidden": true }, "BulkEmail": { "Hidden": true }, "Event": { "Hidden": true }, "SocialSubscription": { "Hidden": true }, "Lead": { "Hidden": true }, "Opportunity": { "Hidden": true }, "SysDashboard": { "Position": 4, "Hidden": true } }, "Models": { "Activity": { "Grid": "FieldForceMobileActivityGridPage", "Preview": "FieldForceMobileActivityPreviewPage", "Edit": "FieldForceMobileActivityEditPage", "RequireLookupColumnsModels": true, "RequiredModels": [ "Activity", "Account", "ActivityCategory", "ActivityCategoryResultEntry", "ActivityPriority", "ActivityParticipant", "ActivityParticipantRole", "ParticipantResponse", "ActivityResult", "ActivityStatus", "ActivityType", "Contact", "SysImage", "SysAdminUnit", "VwRemindings", "ActivityCorrespondence", "FileType", "EmailSendStatus", "EmailType", "VisitActions", "FieldForceActionsInRule", "FieldForceActionType", "FieldForceActionsKnowledgeBase", "CheckInOutResult", "CheckInVerificationStatus", "ActivityFile", "KnowledgeBase", "KnowledgeBaseType", "KnowledgeBaseFile", "Order", "OrderProduct", "Product", "ProductUnit", "Unit", "Tax", "ProductCategory", "ProductType", "TradeMark", "Currency", "CurrencyRate", "ProductCatalogueLevel", "FieldForceRules", "CallDirection", "Pricelist", "SocialMessage", "ProductInAccount", "ActivitySKU", "AccountAddress", "City" ], "ModelExtensions": [ "MobileActivityModelConfig", "FieldForceMobileActivityModelConfig" ], "PagesExtensions": [ "FieldForceProductSelectionPage", "FieldForceMobileNestedFilters", "MobileActivityActionsSettingsFieldForceWorkplace", "MobileActivityGridPageSettingsFieldForceWorkplace", "MobileActivityRecordPageSettingsFieldForceWorkplace", "MobileActivityModuleConfig", "FieldForceMobileActivityModuleConfigFieldForceWorkplace", "FieldForceMobileActivityModuleConfig", "MobileActivityGridPage", "MobileActivityImportHelper", "MobileActivityGridPageDataV2", "MobileActivityGridPageViewV2", "MobileActivityGridPageControllerV2", "FieldForceMobileActivityPreviewPageController", "FieldForceMobileActivityPreviewPageControllerOld" ] }, "Contact": { "RequiredModels": [ "Account", "Contact", "ContactCommunication", "CommunicationType", "Department", "ContactAddress", "AddressType", "Country", "Region", "City", "ContactAnniversary", "AnniversaryType", "Activity", "SysImage", "FileType", "ActivityPriority", "ActivityType", "ActivityCategory", "ActivityStatus", "ContactType" ], "ModelExtensions": [], "PagesExtensions": [ "MobileContactRecordPageSettingsFieldForceWorkplace", "MobileContactGridPageSettingsFieldForceWorkplace", "MobileContactActionsSettingsFieldForceWorkplace", "MobileContactModuleConfig", "FieldForceMobileContactModuleConfig" ] }, "Account": { "RequiredModels": [ "Account", "Contact", "AccountIndustry", "Activity", "AccountCommunication", "CommunicationType", "AccountAddress", "AccountAnniversary", "ActivityResult", "ActivityCategory", "ActivityPriority", "ActivityType", "ActivityStatus", "ActivityCategoryResultEntry", "AddressType", "AnniversaryType", "City", "Country", "Region", "SysImage", "FileType", "ProductInAccount", "AccountType" ], "ModelExtensions": [ "MobileAccountModelConfig" ], "PagesExtensions": [ "MobileAccountRecordPageSettingsFieldForceWorkplace", "MobileAccountGridPageSettingsFieldForceWorkplace", "MobileAccountActionsSettingsFieldForceWorkplace", "MobileAccountModuleConfig", "FieldForceMobileAccountModuleConfig" ] }, "ContactAddress": { "ModelExtensions": [ "MobileContactAddressModelConfig" ] }, "AccountAddress": { "ModelExtensions": [ "MobileAccountAddressModelConfig" ] }, "ContactCommunication": { "ModelExtensions": [ "MobileContactCommunicationModelConfig" ] }, "ContactAnniversary": { "ModelExtensions": [ "MobileContactAnniversaryModelConfig" ] }, "AccountCommunication": { "ModelExtensions": [ "MobileAccountCommunicationModelConfig" ] }, "AccountAnniversary": { "ModelExtensions": [ "MobileAccountAnniversaryModelConfig" ] }, "ActivityParticipant": { "Grid": "MobileActivityParticipantGridPage", "ModelExtensions": [ "MobileActivityParticipantModelConfig" ], "PagesExtensions": [ "MobileActivityParticipantGridPageView", "MobileActivityParticipantGridPageController", "MobileActivityParticipantModuleConfig" ] }, "KnowledgeBase": { "RequiredModels": [ "KnowledgeBase", "KnowledgeBaseType", "FileType", "KnowledgeBaseFile" ], "PagesExtensions": [ "MobileKnowledgeBaseModuleConfig" ] }, "KnowledgeBaseType": { "RequiredModels": [ "KnowledgeBaseType" ] }, "KnowledgeBaseFile": { "RequiredModels": [ "KnowledgeBaseFile", "KnowledgeBaseType" ], "ModelExtensions": [ "MobileKnowledgeBaseFileModelConfig" ] }, "FieldForceActionsInRule": { "RequiredModels": [ "FieldForceRules", "FieldForceActionType" ] }, "FieldForceRules": { "RequiredModels": [ "Activity" ] }, "FieldForceActionsKnowledgeBase": { "RequiredModels": [ "FieldForceActionsInRule", "KnowledgeBase" ] }, "VisitActions": { "RequiredModels": [ "Activity", "FieldForceActionsInRule" ] }, "CheckInOutResult": { "RequiredModels": [ "Activity" ] }, "CheckInVerificationStatus": { "RequiredModels": [ "Activity" ] }, "ActivityFile": { "RequiredModels": [ "Activity" ] }, "OrderProduct": { "RequiredModels": [ "OrderProduct", "Currency", "CurrencyRate" ], "ModelExtensions": [], "PagesExtensions": [ "MobileOrderProductActionsSettingsFieldForceWorkplace", "MobileOrderProductGridPageSettingsFieldForceWorkplace", "MobileOrderProductRecordPageSettingsFieldForceWorkplace" ] }, "SocialMessage": { "PagesExtensions": [] }, "Product": { "RequiredModels": [ "ProductType", "ProductCategory", "Unit", "Currency", "TradeMark", "Tax", "Contact" ] }, "ProductInAccount": { "Grid": "FieldForceMobileProductInAccountGridPage", "RequiredModels": [ "ProductInAccount", "Product" ] }, "ActivitySKU": { "Grid": "FieldForceMobileActivitySKUGridPage", "RequiredModels": [ "ActivitySKU", "Product" ], "ModelExtensions": [], "PagesExtensions": [ "MobileActivitySKUActionsSettingsFieldForceWorkplace", "MobileActivitySKUGridPageSettingsFieldForceWorkplace", "MobileActivitySKURecordPageSettingsFieldForceWorkplace", "FieldForceMobileActivitySKUModuleConfig" ] }, "SysDashboard": { "RequiredModels": [ "SysDashboard", "SysModule" ] } } }
Зверев Александр,
Ставить пакеты на не предназначенную для этого систему не рекомендуется. Упоминания Order могут быть не только в манифесте, но и в других схемах с клиентской и серверной логикой, объектах и таблицах в базе.