Issues with detail-view of subType-models

Dear all,

in our project we followed the A12-Tutorial for modelling an abstract SuperType document with different subTypes of documents (GetA12 Login). Instances of the subType-documents should be displayed in one and the same overview.

This is working fine so far, but whenever I click on a row in the overview to open the Detail-view, I get the following error: “No suitable document model was provided!”.
Does anyone have an idea what could be the problem? We are using A12 2023.06-ext3 .

Btw, opening the Detail-view works fine in the Preview App Control, but not in our application…

Hello @karin-sparse-tundra,

I believe the fact that it was working in PAC but not in your application is a hint of something incorrect in your app model.
Could you please provide your application appmodel.json here?

Yes, of course, @lvluu ! :slight_smile:

Here it is:
Cms-appmodel.json (3.2 KB)

(Please ignore that it says “REDESIGN” in the name and activityDescriptors everywhere)

Thank you very much for your help!

Here, I have an example app model extracted from the Project Information project.

contact-appmodel.json (2.7 KB)

Could you please check by adapting with e.g. adding something like this

"models": [
	{
		"modelType": "form",
		"name": "ProfessionalServices-fm",
		"documentModel": "ProfessionalServices-dm"
	},
	{
		"modelType": "form",
		"name": "Member-fm",
		"documentModel": "Member-dm"
	}
]

Dear @loi-risen-dale ,

I added the, but unfortunately I get the same error as before…

Cms-appmodel.json (4.6 KB)

I see a point. Could you please check removing?

"matchConditions": [
                {
                  "key": "module",
                  "mustEqual": "Content-Management-System-REDESIGN"
                },
                 ̶ ̶{̶
̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶"̶k̶e̶y̶"̶:̶ ̶"̶m̶o̶d̶e̶l̶"̶,̶
̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶"̶m̶u̶s̶t̶E̶q̶u̶a̶l̶"̶:̶ ̶"̶A̶b̶s̶t̶r̶a̶c̶t̶C̶m̶s̶-̶d̶o̶c̶u̶m̶e̶n̶t̶"̶
̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶}̶,̶
                {
                  "key": "instance",
                  "isSet": true
                }
              ]

Dear @loi-risen-dale ,

I htank you very much for all your help!
We could fix the problem yesterday. Our form-dataHolder was the problem, since I thought we could use the document model name of the SuperType, but A12 expected the names of the underlying subTypes to the form models correctly.

Thank you anyway for putting so much thought and work into helping us!!