Hi,
can I use a TreeModel for repeatable groups? I don’t want to split the model and introduce an artificial relation.
Tobias
Hi,
can I use a TreeModel for repeatable groups? I don’t want to split the model and introduce an artificial relation.
Tobias
Tree engine (and also Relationship engine) is built around the relationships between document models and currently, there is no support for the relationship between groups inside a document model. Could you share your use case so I can investigate more?
Also, in my two cents, to support this feature, A12 will have to introduce another concept of relationships between groups inside a document model. This new feature would still involve you to do some “migration works” like creating relationship between your groups then modelling your tree model.
Best regards,
Tri
My model is quite simple. Here is an anagolous situation.
Contract
has a [0…n] - relation to invoices
Invoice
* date
* description
* position [1..10]
** period
** amount
I do not want a treeview to list contracts and invoices.
Instead I’d like to use a treeview for a single contract to list all invoices and positions by opening the “tree”.
And I don’t want to introduce a new [1…10]-relation from “invoice” to “position” for this.
I fully agree with Tobias: repeatable (nested) groups are a powerful concept which deserves IMHO to be supported by tree models too. Albeit this seems not be implemented yet, I do not see why this should be hard, since trees are semantically similar to nested detached repeats.
Aside from complexity of such a split I would argue against splitting the models because one would loose expressive power: data modeled repetitions have advantages of modelling with powerful rules which can not be expressed by overview models. See <INTERNAL_LINK> and Repetition modeling in A12 applications: the case for data modeling for a discussion.
The use cases mentioned by Tobias show some similarity with cross links as described in https://discourse.geta12.com/t/crossreferencing-and-cross-navigation-in-and-between-forms/218/4?u=jknopp. This cross connect approach is designed for detached repeats (and overview models) but would work with treeviews for repeatable groups, too.
I’ve created a new requirement for this : A12-11772
<INTERNAL_LINK>