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
  • ... /* Export to Excel testing */
    a!linkField(
    links: a!safeLink(
    label: "Click here to export this data to Excel.",
    uri: local!linkForDownloadDocs
    )
    ),
    a!sectionLayout(
    label: "Document Details for PA ID: "&local!selectedExternalID,
    firstColumnContents: {
    a!gridField(
    totalCount: local!selectedFiles.totalCount,
    columns: {

    a!gridTextColumn(
    label: "Doc-Type/Sub-Type",
    field:"docTupleID",
    data:
    /* fn!apply(rule!PDIM_formatDocTypeSubType,
    index(local!selectedFiles.data,"docTypeDesc",{}),
    index(local!selectedFiles.data,"docSubTypeDesc",{})

    )
    */
    index(local!selectedFiles.data,"docTypeSubType",...
Reply
  • ... /* Export to Excel testing */
    a!linkField(
    links: a!safeLink(
    label: "Click here to export this data to Excel.",
    uri: local!linkForDownloadDocs
    )
    ),
    a!sectionLayout(
    label: "Document Details for PA ID: "&local!selectedExternalID,
    firstColumnContents: {
    a!gridField(
    totalCount: local!selectedFiles.totalCount,
    columns: {

    a!gridTextColumn(
    label: "Doc-Type/Sub-Type",
    field:"docTupleID",
    data:
    /* fn!apply(rule!PDIM_formatDocTypeSubType,
    index(local!selectedFiles.data,"docTypeDesc",{}),
    index(local!selectedFiles.data,"docSubTypeDesc",{})

    )
    */
    index(local!selectedFiles.data,"docTypeSubType",...
Children
No Data