Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the Hierarchical Data Model?

Data Hierarchical model
0
Posted

What is the Hierarchical Data Model?

0

Hierarchical data model allows to store related entities. It’s designed for the Hierarchical Grid widget. The sample below illustrates how to create a simple hierarchy. //create a new model containing employees Editable model = new EditableGridDataModel( new Object[][] { new String[]{“John”,”Doe”}, new String[]{“Piter”,”Walkman”}, new String[]{“Rupert”,”Brown”} } ); //create a new model containing departments HierarchicalGridDataModel hierarchicalModel = new HierarchicalGridDataModel( new Object[][] { new Object[]{“Accountants”,new Integer(3)}, new Object[]{“Management”,new Integer(10)}, new Object[]{“Development”,new Integer(100)} } ); //make a relationship between Accountants department and a list of employees hierarchicalModel.addSubgridModel(0,0, model); Note that the hierarchical model is not just a tree structure. It’s more complicated. For example you can make a relationship not only between a concrete parent entity and a list of child entities. Grid cells can contain more compl

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123