Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Expand all rows or all columns

Resolved
Jimmy asked on March 11, 2021

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

2 answers

Public
Milena Pechura Milena Pechura Flexmonster March 13, 2021

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

Public
Jimmy March 15, 2021

Thanks for the explanation.
 
Jimmy 

Please login or Register to Submit Answer