Question on SAIL form duplicating records on different pages

Sail Grid Issue.

Hi All,

On the sail form, when I am fetching 25 records at page 1, If I have more than those records, we go on for 2nd page but mu code is loading the same first 25 records. Can any one look into the code pasted below & guide me over the issue?

if(
isnull(local!selectedFileId),
{},
with(


local!linkForDownloadDocs:
getdatasubsetdownloadlinkfromrule(
rule!PDIM_datasubset_searchDocsForFileByPAID,
a!toJson({
paID: local!selectedFileId

})
),


local!selectedFiles:
rule!PDIM_searchDocsForFileByPAID(local!selectedFileId),

if(local!selectedFiles.totalCount<1,

a!textField(
label:"Currently there are no documents part of this file",
readOnly:true

),

{
...

OriginalPostID-200880

OriginalPostID-200880

  Discussion posts and replies are publicly visible

Parents
  • ...{})


    ),
    a!gridTextColumn(
    label: "Paper State",
    field:"attrValue",
    data: fn!apply(
    rule!PDIM_ExtractAttributeValue,
    index(local!selectedFiles.data,"asssetID",0)
    ,9)



    ),
    a!gridTextColumn(
    label: "Current Location",
    field:"currLocID",
    data:
    fn!apply(
    rule!PDIM_extractLocName,
    index(local!selectedFiles.data,"currLocID",{})
    )
    ),
    a!gridTextColumn(
    label: "Created Date",
    field:"createdDT",
    data: index(
    local!selectedFiles.data,
    "createdDT",
    ...
Reply
  • ...{})


    ),
    a!gridTextColumn(
    label: "Paper State",
    field:"attrValue",
    data: fn!apply(
    rule!PDIM_ExtractAttributeValue,
    index(local!selectedFiles.data,"asssetID",0)
    ,9)



    ),
    a!gridTextColumn(
    label: "Current Location",
    field:"currLocID",
    data:
    fn!apply(
    rule!PDIM_extractLocName,
    index(local!selectedFiles.data,"currLocID",{})
    )
    ),
    a!gridTextColumn(
    label: "Created Date",
    field:"createdDT",
    data: index(
    local!selectedFiles.data,
    "createdDT",
    ...
Children
No Data