Overview in Detail view with heterogeneity

Hi BPS, I have the following scenario which I am not able to solve… Could you maybe help me and say if this is at least possible? And maybe give a hint, what I should consider?

Basic wish of behaviour:
• I have two models, one for Tax Countries and one for Taxes.
• Both models are connected in a Relationship (Tax Countries is Parent, Taxes is Child).
• TaxCountriesCDM is the corresponding CDM.
• In the application, there is an overview with the Tax Countries, where I can add a Tax Country (via add button and TaxCountryForm), maybe delete it and so on.
• When I click on an already existing Tax Country in this overview, then an Overview of the Taxes should show in the detail view. There I want to add Taxes to the chosen Tax Country.
Additional (more complicated?) wish:
• Taxes is a super-type with several subtypes, e.g. absoluteTax, insuranceTax,…
• When I am in the Taxes overview, I want to chose which type of Tax I want to add to the overview.
I separated into basic and additional wish, because the basic wish can also be solved another way:
• I don’t have an overview for the taxes but instead a form based on TaxCountriesCDM.
• In this form there is the Tax Country as field and the Taxes as binding.
• BUT I cannot add subtypes of Taxes, only Taxes generally…

Hi @clara-fleet-yew,

Just to check my understanding. When you say:

I understand this to mean that:

  1. You have clicked on an existing Country and you can see the list of Taxes for that Country.
  2. You now click on “Add” under this Binding Overview
  3. You want to be able to select the heterogeneous Subtype then you create on the Composed Form.

If this is true, then you are in luck as you can do this as heterogeneous child activities are supported in Composed Data Models :slight_smile:

In the above screenshot, I’ve just clicked on “Add” in the “Country with Taxes” Form.

You can set up the Binding in the Form Model to use “Child Activities” and then add the different Form Models to separate Screens in the Flow (in the Application Model). I’ve attached my Application Model as an example:
installer-appmodel.json (8.8 KB)

The Variant Dialogue that you see shows the labels from the 3 Subtype Document Models that I created. The label of “Tax_DM” is not shown as I have set this to be abstract using the annotation described in the documentation.

abstract = true

For reference, this was the Model Graph of my Workspace.

Thanks a lot :smiley: I could solve it!