Help with my segment.?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hello I have this problem, someone knows how to hide a section of rows when clicking on an account, my account is the header are N accounts, and N rows per account, HELP.

@Twvcey Rvndvll​ can you help here?

You must be using widgetDataMap to populate data in you segment.

Try using following code

var dataSet = [];

for(let i=0; i < res.Collection.length; i++) {

var obj = {};

dataSet.push(obj);

}

this.view.segment.setData(dataSet);

You can hide your section while setting up obj