Forum Stats

  • 3,769,462 Users
  • 2,252,967 Discussions
  • 7,875,035 Comments

Discussions

oj-list-view is taking time to load and search data in VBCS application

Mudit
Mudit Member Posts: 1 Green Ribbon

Hello All,

We have used oj-list-view with oj-select-single template and have mapped a ADP with it. ADP is being populated via ATP ORDS on a click of a button.

When we the data size is approx. 5000 the oj-select-single is taking longer time to load & search the data, whereas it is working fine when data size is approx 1000.

Below is code snipppet of the -

<oj-select-single id="oj-input-text--1233297668-06" data="[[$page.variables.getClientListADP]]"

   item-text="coavalue" value="{{ $variables.KTNCSACreateAllocationLine.client }}" label-hint="Client"

   required="true">

   <template slot="collectionTemplate" data-oj-as="collection">

   <oj-list-view id="listView1" aria-label="select results" gridlines.item="hidden" selection-mode="single"

    class="oj-select-results oj-group-header-sm" data="[[collection.data]]" selected="[[collection.selected]]"

    current-item="{{collection.currentRow.rowKey}}" on-oj-item-action="[[collection.handleRowAction]]">

    <template slot="itemTemplate" data-oj-as="item">

    <oj-list-item-layout class="oj-listitemlayout-padding-off">

     <span class="oj-typography-body-md oj-text-color-primary">

      <oj-highlight-text text='[[item.data.coavalue + " " + item.data.coadescription]]'

       match-text="[[collection.searchText]]"></oj-highlight-text>

      </span>

    </oj-list-item-layout>

    </template>

   </oj-list-view>

   </template>

  </oj-select-single>

Regards,

Mudit

Comments