Skip to main content
October 11, 2022
Question

How to make record data paging dynamic in a read only grid?

  • October 11, 2022
  • 6 replies
  • 0 views

Hi,

I am using record data ( a!recordData() ) in "data" parameter of the read only grid and I am not able to make the paging dynamic ( should fetch the data/rows from the Record according to the batch size not the whole data), because of this the grid taking too much time to change the paging from one batch to another ( here in the below code pageSize: 10 ).



Expected Outcome: Data should be fetched according to the batch size from the record not the whole data and User Filters must also work with the dynamic paging.

Thank You.

    6 replies

    Participating Frequently
    October 11, 2022

    Just set the page size in the grid and it will be handled 

    ravis5657Author
    October 11, 2022

    Hi Ujjwal,

    Thank you for your response!

    The record data sync is disabled and as I said pageSize was 10 then still grid taking too much time to change the paging.

    stefanhelzle0001
    Brainy
    October 11, 2022

    As a! recordData does not directly provide a parameter for paging, I think that this is done automatically when used inside a grid. Just make sure to pass a value to "pageSize".

    ravis5657Author
    October 11, 2022

    Hi stefanh0002,

    Thank you for your response!

    The record data sync is disabled and as I said pageSize was 10 then still grid taking too much time to change the paging.

    stefanhelzle0001
    Brainy
    October 11, 2022

    Record sync does not change this behaviour. You will need to find out why that query takes too long. I recommend to write a test expression using a!queryRecordType() and test this.