select single with table collection template not showing data
Summary:
Hi Experts
I want to use collection template table in the select single component but the data is not showing up when i click on the select single component, please help me what s wrong here. I'm calling public workers fusion rest api here
<oj-select-single label-hint="Person Name" id="id-fusion-personname" value="{{ $variables.vCurrent.person_id }}" data="[[$variables.publicWorkersListSDP]]" item-text="DisplayName" on-value-item-changed="[[$listeners.idFusionPersonnameValueItem]]"> <template slot="collectionTemplate" data-oj-as="collection"> <oj-table scroll-policy="loadMoreOnScroll" data="[[ collection.data ]]" columns='[{"headerText":"Name","field":"DisplayName"},{"headerText":"Person Number","field":"PersonNumber"}]' selected.row="[[collection.selected]]" current-row="{{collection.currentRow}}" style="height:40vh" on-oj-row-action="[[collection.handleRowAction]]"> <template slot="cellTemplate" data-oj-as="cell"> <oj-highlight-text text="[[String(cell.data)]]" match-text="[[collection.searchText]]"> </oj-highlight-text> </template> </oj-table>