Hi team.
How can I create a classical hierarchy of Parent-child in flexmonster?
For example:
id idParent
1 null
2 3
3 1
4 2
.....
N M
And get the result in dimensions view:
1
3
2
4
.....
M
N
Hello Vsev,
Thank you for your question. We recommend you using the JSON data source for such case. Please have a look at our documentation page https://www.flexmonster.com/doc/managing-data-presentation-json. The first object of the data array allows setting the necessary configuration. Please have a look at the following sample:
{
"Color": {type: "string"},
"Country":{type: "level", hierarchy: "Geography", level: "Country"},
"State": {type: "level", hierarchy: "Geography", level: "State", parent: "Country"},
"City": {type: "level", hierarchy: "Geography", parent: "State"},
"Price": {type: "number"},
"Quantity": {type: "number"}
}
Let us know if you have additional questions here.
Best regards,
Dmytro.