How to filter dataset

Hi ,

 

I want last three rows of dataset. What are syntax for that or do we have any function which can return filter rows ?

  Discussion posts and replies are publicly visible

Parents
  • Code:

    load(
    local!mydatasubSet:a!dataSubset(
    startIndex: 1,
    batchSize: 4,
    sort: a!sortInfo(
    field: "name",
    ascending: true()
    ),
    totalCount: 10,
    data: {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"},
    identifiers: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    ),
    todatasubset(
    arrayToPage:local!mydatasubSet.data,
    pagingConfiguration:topaginginfo(
    local!mydatasubSet.totalCount - 2,
    local!mydatasubSet.totalCount
    )
    )
    )

     

    Output:

    startIndex: 8 batchSize: 10 sort: List of SortInfo: 0 items totalCount: 10 data: List of Text String: 3 items "h" "i" "j" identifiers: List of Number (Integer): 3 items 8 9 10

Reply
  • Code:

    load(
    local!mydatasubSet:a!dataSubset(
    startIndex: 1,
    batchSize: 4,
    sort: a!sortInfo(
    field: "name",
    ascending: true()
    ),
    totalCount: 10,
    data: {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"},
    identifiers: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    ),
    todatasubset(
    arrayToPage:local!mydatasubSet.data,
    pagingConfiguration:topaginginfo(
    local!mydatasubSet.totalCount - 2,
    local!mydatasubSet.totalCount
    )
    )
    )

     

    Output:

    startIndex: 8 batchSize: 10 sort: List of SortInfo: 0 items totalCount: 10 data: List of Text String: 3 items "h" "i" "j" identifiers: List of Number (Integer): 3 items 8 9 10

Children
No Data