Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to expand specific level using oj-row-expander using script?

Kotesh YDec 12 2022

We have requirement of oj-row-expander with three levels of hierarchal data and able to display it on UI with edit feature in level3, when we editing any of level3, need to expand same level of that node, currently using below code to achieve that but unable to expand the respective level it is collapsing everything after updating

var arrayTreeDataProvider;
var flattenedTreeDataProviderView;
arrayTreeDataProvider = new ArrayTreeDataProvider(baseDataProvider, { keyAttributes: 'lvl', keyAttributesScope: 'siblings', childrenAttribute: 'children' });
flattenedTreeDataProviderView = new FlattenedTreeDataProviderView(arrayTreeDataProvider);
flattenedTreeDataProviderView.setExpanded(new keySet.KeySetImpl().add(['1']));(key value in this case 1) so directly passed to test it.

can anyone suggest to achieve above solution??

Thanks.

This post has been answered by John JB Brock-Oracle on Dec 13 2022
Jump to Answer
Comments
Post Details
Added on Dec 12 2022
3 comments
372 views