Raw data table dynamic groups creation


#1

Hello guys actually i have a n interesting feature to develop in my chartfactor app, so the thing that i need is create and remove groups of fields dynamically, there is an easy way to do that?


#2

Hey @sergioSan actually that is easy, you just have to use the function joinGroup to create a group or add a field to a group and the function leaveGroup to remove a field from a group.

// Create a group or add a field to agroup
cf.getVisualization('my-rdt').get('joinGroup')('myColumn', 'Target group');

// Remove a field from a group
cf.getVisualization('my-rdt').get('leaveGroup')('myColumn', 0);


#3

Thank you so much, it really work as i need, and actually i used some other exposed column function, i think now the Raw Data Table is really useful and dynamic. :sunglasses: