How can I get back to the standard Contract page?

Question

How can I get back to the standard Contract page? We have accidentaly created a new type via the section wizard, and all settings got cleared. How can I restore them?

We have also deleted all the replacing schemas connected with the contract while trying to "get back to the previous view" and as a result, we cannot open the edit page. We receive the following error message: "Cannot read property 'entitySchemaName' of undefined".

Answer

Delete the schemas (in your case, you have already done that). Perform registration:

delete from SysModuleEdit
where SysModuleEntityId in (select Id from SysModuleEntity
where SysEntitySchemaUId in (select UId from SysSchema where Name = 'Contract'))
GO
declare @RecordId uniqueidentifier = (select NEWID());
insert into SysModuleEdit(Id, SysModuleEntityId, CardSchemaUId, ActionKindCaption, ActionKindName, PageCaption)
values (@RecordId, '11F1B879-BEC8-4E96-82CC-FB6B77CC854D', '948080FC-031E-4D88-9239-47BCEDAA92BC',
'Добавить договор', 'ContractPage', 'Договор')
insert into SysModuleEditLcz(RecordId, ColumnUId, SysCultureId, Value) values
(@RecordId, 'A19BF4BF-E22B-49B5-B6E0-918FF6290020', '1A778E3F-0A8E-E111-84A3-00155D054C03', 'Добавить договор'),
(@RecordId, '55132174-2B96-4E0A-830C-B8E952B12C45', '1A778E3F-0A8E-E111-84A3-00155D054C03', 'Добавить договор')
update SysModule
set Attribute = ''
where SysModuleEntityId in (select Id from SysModuleEntity
where SysEntitySchemaUId in (select UId from SysSchema where Name = 'Contract'))
GO

Restore the edit pages for all custom contract types via the section wizard with specifying their parent in the schemas:Edit page schema of the "Contracts" section.

Like 0

Like

Share

0 comments
Show all comments