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…
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.