Need to store and show data in trees structure

0
There is a scenario. Suppose we have multiple departments, one of them is SCIENCE. Under SCIENCE, there are 3 sub-departments called PHYSICS,CHEMISTRY,BIOLOGY. Under BIOLOGY again, we have 2 sub-departments called BOTANY,ZOOLOGY. How to store data in this scenario and show it in UI. Please let me know its urgent   Thank you
asked
4 answers
0

Hi Trishla,

 

Please check below widgets.

https://marketplace.mendix.com/link/component/212053

https://marketplace.mendix.com/link/component/111095

https://marketplace.mendix.com/link/component/38864

answered
0

Hello Trishla, 

 

You have different options i list here 3:

image.png

Depending on your use case which option is the best depends. Option one is really simple to maintain as domain model but it requires more thought of how to implement it. Option two is harder to maintain but more straightforward in implementation, option 3 is a bit inbetween option 1 and 2. 

 

Things to consider for example:

 

Good to know when you use native it is not really advisable to have generalizations that you want to use both offline. 

 

And this is only one thing to think about, also think about database size and how you want to show it in your application, also think about future developements is there a possiblity you need an extra layer or not?

 

Hope this helps you and give a bit of direction !

 

Good luck!

 

answered
0

refer thisScreenshot 2024-08-28 190846.png

answered
0

Hello Trishla,

 

You can use the tree table widget for that:

 

https://marketplace.mendix.com/link/component/111095

 

image.png

 

Just follow their documentation and watch the demo project.

 

Hope this helps,

 

Good luck!

answered