Hey!
We truly hope that our free tool comes in handy for your business, especially these days. Follow our news, stay safe & pivot on!

How to tuple all components

Answered

Can you please let me know is there any way to Tuple all components.
I don’t want to Hardcode tuples names.
 

3 answers

WebDataRocks Team WebDataRocks August 7, 2020

Hi Raj,
 
Thank you for your question.
 
In case you want to expand all nodes, we suggest using the expandAll property from the Slice Object
 
If your use-case is different, could you please share more information on what are you trying to achieve?
 
Regards,
WebDataRocks team

Raj August 7, 2020

Thanks you team for your response.
I am using “Classic” mode. (As a client requirement)
Actually I want to expand whole row with multiple columns on a single click. So to achieve it and I did below code and works fine.
But I want to make tuples dynamic or you can say I want to make all my batches inside the tuple.
i.e I don’t want to Hardcode every batch inside the tuple.

expands: {
expandAll: true,
rows: [
{ tuple: [
"batch.R0934"
]
},
{tuple: [
"batch.R0454"
]
},
{
tuple: [
"batch.R0569"
]
}
]
}e

 
 

WebDataRocks Team WebDataRocks August 18, 2020

Hello!
 
Thank you for providing further details about the case.
 
WebDataRocks does not support the described feature, but we would like to suggest possible workarounds:

  1. generating tuple for every batch 
  2. using expandAll: true without specifying the tuples, so all nodes will be expanded
  3. using setReport API call that will set slices with desired expands

 
Hope it helps.
 
Regards,
WebDataRocks team

Please login or Register to Submit Answer