Hello,
Is it possible to use the expands
property on the Slice to expand all rows or all columns?
Like just by giving the category:
"expands": {
"rows": [
{
"tuple": [
"category"
]
}
]
}
Jimmy
Hello, Jimmy,
Thank you for your question.
If the expands
property of the slice
is used, tuples with each member of the hierarchy should be specified for your case. For example, if there are categories "Cars" and "Accessories", and you want to expand all categories, the code should look like this:
"expands": {
"rows": [
{
"tuple": [
"category.[accessories]"
]
},
{
"tuple": [
"category.[cars]"
]
}
]
}
However, Flexmonster provides an expandData API call, which expands all nodes of the specified hierarchy. Perhaps this method can be useful for your case.
Our team would like to also mention the expandAll
property of the slice.expands
object. If it is defined as true
, Flexmonster expands all nodes of all hierarchies in the slice.
Please let us know if our response helped and if you have any other questions.
Best regards,
Milena
Thanks for the explanation.
Jimmy