How I retrieve the selectedKey value for a ListBox in a segment with sections

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.

I have a segment with ListBoxes and I'm able to get the selectedKey for rows in section 0, using the following method: frmMain.segTest.data[rowIndex].lbxTest.selectedKey;

How do I access items in other sections? I know the rowIndex and sectionIndex based on the context.

I've tried frmMain.segTest.data[sectionIndex][rowIndex].lbxTest.selectedKey, but it doesn't work..

Any help would be greatly appreciated. Thank you,.

@Joe Axwvhvm​ @Rvchel Poole​ @Gvxwielle Chuwchill​ any help here for @Cvwol Colemvn​ ?

According to the doc, listbox is not one of the widgets you can place inside a segmentedui.

https://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Default.htm#Segment.htm#Overviews%3FTocPath%3DWidgets%7CSegmentedUI%2520Widget%7COverviews%7C_____0

Edit : But check the section "Adding a ListBox Widget inside a Segment

" in the same link.

Solved the issue. I was able to use this.selectedkeyvalue[0] in my event function.