Добрый час суток! Сделал когда нажимаю на запись в реестре в разделе то переходит на пустую белую страницу и в консоле такое вот предупреждение,а надо на мою Preview. Подскажите пожалуйста как исправить или где искать решение проблемы ? Раздел - SuInterview
при этом конфиг выглядит так:
Terrasoft.sdk.RecordPage.addColumnSet("SuInterview", {
name: "primaryColumnSet",
isPrimary: true,
position: 0
});
Terrasoft.sdk.RecordPage.addColumn("SuInterview", {
name: "SuAccount",
position: 0,
isInPlaceEditingMode: false,
readOnly: true
}, "primaryColumnSet");
Terrasoft.sdk.RecordPage.addColumn("SuInterview", {
name: "SuContact",
position: 1,
isInPlaceEditingMode: false,
readOnly: true
}, "primaryColumnSet");
Terrasoft.sdk.RecordPage.addColumn("SuInterview", {
name: "SuResponsible",
position: 2,
isInPlaceEditingMode: false,
readOnly: true
}, "primaryColumnSet");
Terrasoft.sdk.GridPage.setPrimaryColumn("SuInterview", "SuName");
Terrasoft.sdk.GridPage.setSecondaryColumn("SuInterview", "CreatedOn");
Сам манифест:
{
"SyncOptions": {
"SysSettingsImportConfig": [],
"ModelDataImportConfig": [
{
"Name": "SuInterview",
"SyncColumns": [
"SuName",
"SuResponsible",
"SuQuestionary",
"SuKind"
]
},
{
"Name": "Contact",
"SyncColumns": []
},
{
"Name": "SuQuestionary",
"SyncColumns": []
},
{
"Name": "SuInterviewKind",
"SyncColumns": []
},
{
"Name": "SocialMessage",
"SyncColumns": [
"EntityId"
]
},
{
"Name": "SuInterviewQuestion",
"SyncColumns": [
"Id",
"SuInterview"
]
}
],
"SysLookupsImportConfig": [
"SuAnswersType",
"SysUserInRole"
]
},
"Modules": {
"SuInterview": {
"Group": "main",
"Model": "SuInterview",
"Position": 4,
"isStartPage": false,
"Title": "SuInterviewSectionTitle",
"Hidden": false
}
},
"Models": {
"SuAnswersType": {
"RequiredModels": [
]
},
"Account": {
"RequiredModels": [
]
},
"SuInterview": {
"Preview": "SuInterviewPreviewPage",
"RequiredModels": [
"SuInterview",
"Contact",
"SuQuestionary",
"SuInterviewKind",
"SocialMessage",
"SuInterviewQuestion",
"SuAnswersType",
"SuInterviewType",
"ContactAddress",
"Account"
],
"ModelExtensions": [],
"PagesExtensions": [
"SuInterviewPreviewPage",
"SuMobileInterviewModuleConfig"
]
},
"SocialMessage": {
"RequiredModels": [],
"ModelExtensions": [],
"PagesExtensions": []
},
"SuInterviewQuestion": {
"RequiredModels": [
"SuInterviewQuestion",
"SocialMessage"
],
"ModelExtensions": [],
"PagesExtensions": []
}
}
}
и моя PreviewPage
/* globals SuInterview: false */
Terrasoft.LastLoadedPageData = {
controllerName: "SuMobileSuInterviewPreviewPage.Controller",
viewXType: "sumobilesuinterviewpreviewpageview"
};
Ext.define("SuMobileSuInterviewPreviewPage.View", {
extend: "Terrasoft.view.BasePreviewPage",
xtype: "sumobilesuinterviewpreviewpageview",
config: {
id: "SuMobileSuInterviewPreviewPage"
}
});
Ext.define("SuMobileSuInterviewPreviewPage.Controller", {
extend: "Terrasoft.controller.BasePreviewPage",
statics: {
Model: SuInterview
},
config: {
refs: {
view: "#SuMobileSuInterviewPreviewPage"
}
}
});