Anybody can explain use of a!paginginfo() Function?

s

  Discussion posts and replies are publicly visible

Parents
  • HI tirumalar,

    a!paging Info() function contains 3 parameters start Index, batch Size, sort which is used to fetch the data and is used to display the records i.e(batch size). sort can be used by a!sortinfo()


    For example: your total Data set contains 500 items, but you only want to display 100 at a time. You set your paging info values to: startIndex:1, batchSize:100.

    You display your grid, if you display your datasubset in a paragraph field, you'll see three important values:
    datasubset.startIndex:1, datasubset.batchSize:100, datasubset.totalCount: 500,

    If you page your grid to the next one hundred and examine your values, you'll see:
    datasubset.startIndex:101, datasubset.batchSize:100, datasubset.totalCount:500

    Thanks,
    ravalik
Reply
  • HI tirumalar,

    a!paging Info() function contains 3 parameters start Index, batch Size, sort which is used to fetch the data and is used to display the records i.e(batch size). sort can be used by a!sortinfo()


    For example: your total Data set contains 500 items, but you only want to display 100 at a time. You set your paging info values to: startIndex:1, batchSize:100.

    You display your grid, if you display your datasubset in a paragraph field, you'll see three important values:
    datasubset.startIndex:1, datasubset.batchSize:100, datasubset.totalCount: 500,

    If you page your grid to the next one hundred and examine your values, you'll see:
    datasubset.startIndex:101, datasubset.batchSize:100, datasubset.totalCount:500

    Thanks,
    ravalik
Children
No Data