Dynamic grid BatchSize

Hi All,

I have a usecase where I need to pass the dynamic values for the batchsize for the grid. Initially grid should have a default value of 25.Then user can able to change the batchsize and I should validate the batchsize should not be less than 1 and greater than 50.I tried with local variables by using "with" and it is not allowing me to save the values.Any help would be appreciate it.

TIA.

OriginalPostID-232411

  Discussion posts and replies are publicly visible

Parents
  • load(
    local!activeBatchSize: ri!batchSize,
    a!sectionLayout(
    firstColumnContents: {
    a!integerField(
    label: "Results per Page",
    labelPosition: "ABOVE",
    value: local!activeBatchSize,
    saveInto: {local!activeBatchSize},
    validations: {
    if(or(local!activeBatchSize<1,local!activeBatchSize>50),
    "Please enter value between 1 and 50",{})}
    ),

    a!integerField(
    label:"Test value",
    value:local!activeBatchSize
    )
    }
    )
    ),
    Please note that: you need to reset the batch size in paging info using the local!activeBatchSize value. let me know if that worked or not
Reply
  • load(
    local!activeBatchSize: ri!batchSize,
    a!sectionLayout(
    firstColumnContents: {
    a!integerField(
    label: "Results per Page",
    labelPosition: "ABOVE",
    value: local!activeBatchSize,
    saveInto: {local!activeBatchSize},
    validations: {
    if(or(local!activeBatchSize<1,local!activeBatchSize>50),
    "Please enter value between 1 and 50",{})}
    ),

    a!integerField(
    label:"Test value",
    value:local!activeBatchSize
    )
    }
    )
    ),
    Please note that: you need to reset the batch size in paging info using the local!activeBatchSize value. let me know if that worked or not
Children
No Data