We are looking for a way to display a tree of nested/related items. We found the showcase item Tree/DataBinding/LoadOnDemand which does something similar but with one datasource (and an internal foreignkey definition).
We would like to know whether it is possible to define a hierarchical structure with different related (rest)datasources by using foreignkey definitions between the related datasources.
The example uses a parentId foreignkey which we would also like to use, meaning that data in the sub-datasource would hold the parentId. Is this possible and how would you define such a foreignkey? And would this make the restdatasource to use the Id of the parent as a filter/criteria when fetching the children?
If this is not possible could you please give us your thoughts on how best to achieve this behaviour?
We would like to know whether it is possible to define a hierarchical structure with different related (rest)datasources by using foreignkey definitions between the related datasources.
The example uses a parentId foreignkey which we would also like to use, meaning that data in the sub-datasource would hold the parentId. Is this possible and how would you define such a foreignkey? And would this make the restdatasource to use the Id of the parent as a filter/criteria when fetching the children?
If this is not possible could you please give us your thoughts on how best to achieve this behaviour?
Comment