a!dataSubset( startIndex, batchSize, sort, totalCount, data, identifiers )
Creates a value of type DataSubset for defining the source of expression-backed records and for use with a!pickerFieldCustom
, leaving the data as provided. To apply sorting and paging, use todatasubset()
.
See also: DataSubset
Keyword | Type | Description |
---|---|---|
|
Integer |
The index of the first item to be returned in the subset. |
|
Integer |
The number of items to be returned in the subset. |
|
SortInfo Array |
Valid values include |
|
Integer |
The number of items in total. |
|
Any Type Array |
The data to be returned in the subset. |
|
Any Type Array |
A parallel list of unique identifiers for each item in the subset. |
DataSubset
You can copy and paste these examples into the Expression Rule Designer to see how this works.
1
2
3
4
5
6
7
8
9
10
11
=a!dataSubset(
startIndex: 1,
batchSize: 4,
sort: a!sortInfo(
field: "name",
ascending: true()
),
totalCount: 10,
data: {"a", "b", "c", "d"},
identifiers: {1, 2, 3, 4}
)
returns